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.
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>
6 years ago
..
tests/repos/repo1_bare
README.md
blob.go Improve listing performance by using go-git (#6478) 6 years ago
blob_test.go Improve listing performance by using go-git (#6478) 6 years ago
cache.go
command.go
command_test.go
commit.go Improve listing performance by using go-git (#6478) 6 years ago
commit_archive.go
commit_info.go Remove `seen` map from `getLastCommitForPaths` (#6807) 6 years ago
commit_info_test.go Improve listing performance by using go-git (#6478) 6 years ago
commit_test.go
error.go Improve listing performance by using go-git (#6478) 6 years ago
git.go
hook.go
parse.go Improve listing performance by using go-git (#6478) 6 years ago
parse_test.go Improve listing performance by using go-git (#6478) 6 years ago
ref.go
repo.go Number of commits ahead/behind in branch overview (#6695) 6 years ago
repo_blame.go
repo_blob.go Improve listing performance by using go-git (#6478) 6 years ago
repo_blob_test.go Improve listing performance by using go-git (#6478) 6 years ago
repo_branch.go Improve listing performance by using go-git (#6478) 6 years ago
repo_branch_test.go
repo_commit.go Improve listing performance by using go-git (#6478) 6 years ago
repo_commit_test.go
repo_hook.go
repo_object.go
repo_pull.go
repo_pull_test.go
repo_ref.go
repo_ref_test.go
repo_stats.go Git statistics in Activity tab (#4724) 6 years ago
repo_stats_test.go Git statistics in Activity tab (#4724) 6 years ago
repo_tag.go Improve listing performance by using go-git (#6478) 6 years ago
repo_tag_test.go
repo_test.go
repo_tree.go Fix #6813: Allow git.GetTree to take both commit and tree names (#6816) 6 years ago
sha1.go Improve listing performance by using go-git (#6478) 6 years ago
signature.go Improve listing performance by using go-git (#6478) 6 years ago
submodule.go
submodule_test.go
tag.go
tree.go Fix #6813: Allow git.GetTree to take both commit and tree names (#6816) 6 years ago
tree_blob.go Improve listing performance by using go-git (#6478) 6 years ago
tree_entry.go Fix #6813: Allow git.GetTree to take both commit and tree names (#6816) 6 years ago
tree_entry_test.go Improve listing performance by using go-git (#6478) 6 years ago
utils.go

README.md

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.