Skip to content

Commit 231f3bf

Browse files
committed
enhance: use --ancestry-path=<commit_oid> to reduce unnecessary outpus while querying children commits
Signed-off-by: leo <longshuang@msn.cn>
1 parent f5d6e12 commit 231f3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/QueryCommitChildren.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public QueryCommitChildren(string repo, string commit, int max)
99
WorkingDirectory = repo;
1010
Context = repo;
1111
_commit = commit;
12-
Args = $"rev-list -{max} --parents --branches --remotes ^{commit}";
12+
Args = $"rev-list -{max} --parents --branches --remotes --ancestry-path={commit} ^{commit}";
1313
}
1414

1515
public List<string> Result()

0 commit comments

Comments
 (0)