You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mario Lubenka 55a8e12d85 Number of commits ahead/behind in branch overview (#6695)
* Call Git API to determine divergence of a branch and its base branch

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Show commit divergance in branch list

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Adds missing comment

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Adds test for diverging commits

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Try comparing commits instead of branches

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Removes test as CI can't run it

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Adjusts signature of percentage function to allow providing multiple integers as numerator

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Moves CountDivergingCommits function into repofiles module

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
5 years ago
..
activity.go Git statistics in Activity tab (#4724) 5 years ago
attachment.go fix upload attachments (#6481) 5 years ago
blame.go Add option to blame files (#5721) 5 years ago
branch.go Number of commits ahead/behind in branch overview (#6695) 5 years ago
commit.go Unifies pagination template usage (#6531) (#6533) 5 years ago
download.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
editor.go Fix reversion caused by 6314 (#6685) 5 years ago
editor_test.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 5 years ago
http.go OAuth2 token can be used in basic auth (#6747) 5 years ago
issue.go fix pulls broken when fork repository deleted (#6754) 5 years ago
issue_dependency.go Added dependencies for issues (#2196) (#2531) 6 years ago
issue_label.go Allow labels to contain emoji (#6063) 5 years ago
issue_label_test.go fix go vet error (#3740) 6 years ago
issue_lock.go Implement "conversation lock" for issue comments (#5073) 5 years ago
issue_stopwatch.go Automatically clear stopwatch on merging a PR (#4327) 5 years ago
issue_timetrack.go Handle refactor (#3339) 7 years ago
issue_watch.go Trace Logging on Permission Denied & ColorFormat (#6618) 5 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
middlewares.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
milestone.go Unifies pagination template usage (#6531) (#6533) 5 years ago
pull.go Trace Logging on Permission Denied & ColorFormat (#6618) 5 years ago
pull_review.go Add comment replies (#5104) 6 years ago
release.go Unifies pagination template usage (#6531) (#6533) 5 years ago
release_test.go Fix missing branch in release bug (#3108) 7 years ago
repo.go Better logging (#6038) (#6095) 5 years ago
search.go Unifies pagination template usage (#6531) (#6533) 5 years ago
setting.go Correctly adjust mirror url (#6593) 5 years ago
setting_protected_branch.go Improve listing performance by using go-git (#6478) 5 years ago
settings_test.go An inactive user shouldn't be able to be added as a collaborator (#4535) 6 years ago
topic.go Better logging (#6038) (#6095) 5 years ago
view.go Fix org visibility bug when git cloning (#6743) 5 years ago
webhook.go Add support for MS Teams webhooks (#6632) 5 years ago
wiki.go Trace Logging on Permission Denied & ColorFormat (#6618) 5 years ago
wiki_test.go Improve listing performance by using go-git (#6478) 5 years ago