mirror of https://github.com/go-gitea/gitea.git
Unfortunately #11614 introduced a bug whereby the initial commit of a repository could not be seen due to there being no parent commit to create a clear diff from. Here we create a diffstat from the difference between the parentless SHA and the SHA of the empty tree - a constant known to git. (With thanks to @L0veSunshine for informing me of this SHA) Thanks to @a1012112796 for initial attempt to fix. Fix #11650 Closes #11674 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-Authored-By: L0veSunshine <xuan199651@gmail.com> |
5 years ago | |
---|---|---|
.. | ||
pipeline | ||
tests/repos | ||
README.md | ||
blame.go | ||
blame_test.go | ||
blob.go | 5 years ago | |
blob_test.go | ||
cache.go | 5 years ago | |
command.go | 5 years ago | |
command_test.go | ||
commit.go | 5 years ago | |
commit_archive.go | ||
commit_info.go | 5 years ago | |
commit_info_test.go | 5 years ago | |
commit_reader.go | 5 years ago | |
commit_test.go | ||
diff.go | ||
diff_test.go | ||
error.go | 5 years ago | |
git.go | 5 years ago | |
git_test.go | ||
hook.go | ||
notes.go | 5 years ago | |
notes_test.go | ||
parse.go | 5 years ago | |
parse_test.go | 5 years ago | |
ref.go | ||
repo.go | 5 years ago | |
repo_attribute.go | ||
repo_blame.go | ||
repo_blob.go | 5 years ago | |
repo_blob_test.go | ||
repo_branch.go | 5 years ago | |
repo_branch_test.go | ||
repo_commit.go | 5 years ago | |
repo_commit_test.go | ||
repo_commitgraph.go | 5 years ago | |
repo_compare.go | 5 years ago | |
repo_compare_test.go | ||
repo_gpg.go | ||
repo_hook.go | ||
repo_index.go | ||
repo_language_stats.go | 5 years ago | |
repo_object.go | ||
repo_ref.go | 5 years ago | |
repo_ref_test.go | ||
repo_stats.go | ||
repo_stats_test.go | ||
repo_tag.go | 5 years ago | |
repo_tag_test.go | ||
repo_test.go | ||
repo_tree.go | ||
sha1.go | 5 years ago | |
signature.go | 5 years ago | |
submodule.go | 5 years ago | |
submodule_test.go | 5 years ago | |
tag.go | ||
tree.go | 5 years ago | |
tree_blob.go | 5 years ago | |
tree_entry.go | 5 years ago | |
tree_entry_test.go | 5 years ago | |
utils.go | 5 years ago | |
utils_test.go | 5 years ago |
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.