summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-12-12 21:49:51 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-12-12 21:49:51 -0800
commit9f5074e0348071532911cffb622d7df6754a9743 (patch)
treefc7c2003d22ca48107e199175d857c2b32d69801 /revision.c
parentMerge branch 'jk/asciidoc-update' (diff)
parentreflogs: clear flags properly in corner case (diff)
downloadtgif-9f5074e0348071532911cffb622d7df6754a9743.tar.xz
Merge branch 'jk/maint-reflog-bottom'
* jk/maint-reflog-bottom: reflogs: clear flags properly in corner case
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index b1c18906ba..ded881263b 100644
--- a/revision.c
+++ b/revision.c
@@ -2030,8 +2030,10 @@ static struct commit *get_revision_1(struct rev_info *revs)
revs->commits = entry->next;
free(entry);
- if (revs->reflog_info)
+ if (revs->reflog_info) {
fake_reflog_parent(revs->reflog_info, commit);
+ commit->object.flags &= ~(ADDED | SEEN | SHOWN);
+ }
/*
* If we haven't done the list limiting, we need to look at