From ba3c93743a8151e3663e1fda6b3cb165d8373ddf Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 5 Apr 2006 18:21:17 -0700 Subject: 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 --- blame.c | 1 + 1 file changed, 1 insertion(+) diff --git a/blame.c b/blame.c index 98f99922a7..9bb34e63ec 100644 --- a/blame.c +++ b/blame.c @@ -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); -- cgit v1.2.3