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>
Junio C Hamano committed
Apr 5, 2006 at 18:21 UTC
ba3c93743a8151e3663e1fda6b3cb165d8373ddf
1 file changed
+1
blame.c
+1
@@ -813,6 +813,7 @@ int main(int argc, const char **argv)
813
rev.prune_fn = simplify_commit;
814
rev.topo_setter = topo_setter;
815
rev.topo_getter = topo_getter;
816
+ rev.parents = 1;
817
rev.limited = 1;
818
819
commit_list_insert(start_commit, &rev.commits);