Skip to content

Commit ba3c937

Browse files
author
Junio C Hamano
committed
blame.c: fix completely broken ancestry traversal.
Recent revision.c updates completely broken the assignment of blames by not rewriting commit->parents field unless explicitly asked to by the caller. The caller needs to set revs.parents. Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 6cbd5d7 commit ba3c937

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

blame.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ int main(int argc, const char **argv)
813813
rev.prune_fn = simplify_commit;
814814
rev.topo_setter = topo_setter;
815815
rev.topo_getter = topo_getter;
816+
rev.parents = 1;
816817
rev.limited = 1;
817818

818819
commit_list_insert(start_commit, &rev.commits);

0 commit comments

Comments
 (0)