mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-07 20:04:59 +00:00
refactor: add new constant Models.Commit.EmptyTreeSHA1
(#1360)
This commit is contained in:
parent
f3fe90b2e1
commit
4363b8b6aa
6 changed files with 12 additions and 9 deletions
|
@ -1528,7 +1528,7 @@ namespace SourceGit.ViewModels
|
|||
if (_useAmend)
|
||||
{
|
||||
var head = new Commands.QuerySingleCommit(_repo.FullPath, "HEAD").Result();
|
||||
return new Commands.QueryStagedChangesWithAmend(_repo.FullPath, head.Parents.Count == 0 ? "4b825dc642cb6eb9a060e54bf8d69288fbee4904" : $"{head.SHA}^").Result();
|
||||
return new Commands.QueryStagedChangesWithAmend(_repo.FullPath, head.Parents.Count == 0 ? Models.Commit.EmptyTreeSHA1 : $"{head.SHA}^").Result();
|
||||
}
|
||||
|
||||
var rs = new List<Models.Change>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue