refactor: add new constant Models.Commit.EmptyTreeSHA1 (#1360)

This commit is contained in:
Göran W 2025-05-24 13:23:28 +02:00 committed by GitHub
parent f3fe90b2e1
commit 4363b8b6aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 12 additions and 9 deletions

View file

@ -11,7 +11,7 @@ namespace SourceGit.Commands
{
WorkingDirectory = repo;
Context = repo;
Args = $"diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 {commit} --numstat -- \"{path}\"";
Args = $"diff {Models.Commit.EmptyTreeSHA1} {commit} --numstat -- \"{path}\"";
RaiseError = false;
}