summaryrefslogtreecommitdiffstats
path: root/modules/git/repo_tree_nogogit.go
diff options
context:
space:
mode:
authorZettat123 <zettat123@gmail.com>2023-08-04 10:53:15 +0800
committerGitHub <noreply@github.com>2023-08-04 02:53:15 +0000
commit8a2f019d69324f47331afb87d6f7cd85fc1cfe68 (patch)
tree1468b798952be327aad956243e10e5c32eb92898 /modules/git/repo_tree_nogogit.go
parent865d2221c0f4b2a8623ff9299930c9bab0da2c78 (diff)
downloadgitea-8a2f019d69324f47331afb87d6f7cd85fc1cfe68.tar.gz
gitea-8a2f019d69324f47331afb87d6f7cd85fc1cfe68.zip
Support getting changed files when commit ID is `EmptySHA` (#26290)
Fixes #26270. Co-Author: @wxiaoguang Thanks @lunny for providing this solution As https://github.com/go-gitea/gitea/issues/26270#issuecomment-1661695151 said, at present we cannot get the names of changed files correctly when the `OldCommitID` is `EmptySHA`. In this PR, the `GetCommitFilesChanged` method is added and will be used to get the changed files by commit ID. References: - https://stackoverflow.com/a/424142 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/git/repo_tree_nogogit.go')
0 files changed, 0 insertions, 0 deletions