summaryrefslogtreecommitdiff
path: root/blame.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-06 01:21:17 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-06 01:21:17 (GMT)
commitba3c93743a8151e3663e1fda6b3cb165d8373ddf (patch)
tree595a7c058133237e1080143da3b90a9f0e76c6a8 /blame.c
parent6cbd5d7d79f5751828397558e7c3611b048565fb (diff)
downloadgit-ba3c93743a8151e3663e1fda6b3cb165d8373ddf.zip
git-ba3c93743a8151e3663e1fda6b3cb165d8373ddf.tar.gz
git-ba3c93743a8151e3663e1fda6b3cb165d8373ddf.tar.bz2
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>
Diffstat (limited to 'blame.c')
-rw-r--r--blame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/blame.c b/blame.c
index 98f9992..9bb34e6 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);