mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
enhance: use --ancestry-path=<commit_oid>
to reduce unnecessary outpus while querying children commits
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
f5d6e1264d
commit
231f3bf668
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ namespace SourceGit.Commands
|
|||
WorkingDirectory = repo;
|
||||
Context = repo;
|
||||
_commit = commit;
|
||||
Args = $"rev-list -{max} --parents --branches --remotes ^{commit}";
|
||||
Args = $"rev-list -{max} --parents --branches --remotes --ancestry-path={commit} ^{commit}";
|
||||
}
|
||||
|
||||
public List<string> Result()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue