diff options
author | Zettat123 <zettat123@gmail.com> | 2023-08-04 10:53:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 02:53:15 +0000 |
commit | 8a2f019d69324f47331afb87d6f7cd85fc1cfe68 (patch) | |
tree | 1468b798952be327aad956243e10e5c32eb92898 /modules/git/repo_tree_nogogit.go | |
parent | 865d2221c0f4b2a8623ff9299930c9bab0da2c78 (diff) | |
download | gitea-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