Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support getting changed files when commit ID is EmptySHA (#26290) #26316

Merged
merged 1 commit into from
Aug 4, 2023

Commits on Aug 4, 2023

  1. Support getting changed files when commit ID is EmptySHA (go-gitea#…

    …26290)
    
    Fixes go-gitea#26270.
    
    Co-Author: @wxiaoguang 
    
    Thanks @lunny for providing this solution
    
    As
    go-gitea#26270 (comment)
    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>
    2 people authored and GiteaBot committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    9e0e559 View commit details
    Browse the repository at this point in the history