1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-03 13:11:15 +02:00
gitea/modules/git
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>
2019-05-05 19:25:25 +03:00
..
tests/repos/repo1_bare
blob_test.go
blob.go
cache.go
command_test.go
command.go
commit_archive.go
commit_info_test.go
commit_info.go
commit_test.go
commit.go
error.go
git.go
hook.go
parse_test.go
parse.go
README.md
ref.go
repo_blame.go
repo_blob_test.go
repo_blob.go
repo_branch_test.go
repo_branch.go
repo_commit_test.go
repo_commit.go
repo_hook.go
repo_object.go
repo_pull_test.go
repo_pull.go
repo_ref_test.go
repo_ref.go
repo_stats_test.go
repo_stats.go
repo_tag_test.go
repo_tag.go
repo_test.go
repo_tree.go
repo.go Number of commits ahead/behind in branch overview (#6695) 2019-05-05 19:25:25 +03:00
sha1.go
signature.go
submodule_test.go
submodule.go
tag.go
tree_blob.go
tree_entry_test.go
tree_entry.go
tree.go
utils.go

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.