Skip to content

Commit

Permalink
blame.c: fix completely broken ancestry traversal.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Apr 6, 2006
1 parent 6cbd5d7 commit ba3c937
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blame.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ int main(int argc, const char **argv)
rev.prune_fn = simplify_commit;
rev.topo_setter = topo_setter;
rev.topo_getter = topo_getter;
rev.parents = 1;
rev.limited = 1;

commit_list_insert(start_commit, &rev.commits);
Expand Down

0 comments on commit ba3c937

Please sign in to comment.