mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
refactor: use <revision_sha>^ instead of <revision_parent_sha> as base revsion when getting changes of commit (#1625)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -354,7 +354,7 @@ namespace SourceGit.ViewModels
|
||||
|
||||
Task.Run(async () =>
|
||||
{
|
||||
var parent = _commit.Parents.Count == 0 ? Models.Commit.EmptyTreeSHA1 : _commit.Parents[0];
|
||||
var parent = _commit.Parents.Count == 0 ? Models.Commit.EmptyTreeSHA1 : $"{_commit.SHA}^";
|
||||
var cmd = new Commands.CompareRevisions(_repo.FullPath, parent, _commit.SHA) { CancellationToken = token };
|
||||
var changes = await cmd.ReadAsync().ConfigureAwait(false);
|
||||
var visible = changes;
|
||||
|
||||
Reference in New Issue
Block a user