aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-05 18:21:17 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-05 18:21:17 -0700
commitba3c93743a8151e3663e1fda6b3cb165d8373ddf (patch)
tree595a7c058133237e1080143da3b90a9f0e76c6a8
parent6cbd5d7d79f5751828397558e7c3611b048565fb (diff)
downloadgit-ba3c93743a8151e3663e1fda6b3cb165d8373ddf.tar.gz
git-ba3c93743a8151e3663e1fda6b3cb165d8373ddf.tar.xz
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>
-rw-r--r--blame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/blame.c b/blame.c
index 98f99922a..9bb34e63e 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);