From: Linus Torvalds Date: Wed, 19 Apr 2006 03:31:41 +0000 (-0700) Subject: Fix uninteresting tags in new revision parsing X-Git-Tag: v1.4.0-rc1~237 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4262c1b0c38613a8c5ae729bd4d3f18f0df3ec44;p=git-core%2Fgit.git Fix uninteresting tags in new revision parsing When I unified the revision argument parsing, I introduced a simple bug wrt tags that had been marked uninteresting. When it was preparing for the revision walk, it would mark all the parent commits of an uninteresting tag correctly uninteresting, but it would forget about the commit itself. This means that when I just did my 2.6.17-rc2 release, and my scripts generated the log for "v2.6.17-rc1..v2.6.17-rc2", everything was fine, except the commit pointed to by 2.6.17-rc1 (which shouldn't have been there) was included. Even though it should obviously have been marked as being uninteresting. Not a huge deal, and the fix is trivial. Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano --- diff --git a/revision.c b/revision.c index dbd54da5b..113dd5a89 100644 --- a/revision.c +++ b/revision.c @@ -152,6 +152,7 @@ static struct commit *handle_commit(struct rev_info *revs, struct object *object if (parse_commit(commit) < 0) die("unable to parse commit %s", name); if (flags & UNINTERESTING) { + commit->object.flags |= UNINTERESTING; mark_parents_uninteresting(commit); revs->limited = 1; }