git log and --first-parent

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Monday, July 23, 2007 - 7:05 pm

I'm puzzled over the behavior of --first-parent. The documentations seems to imply
that only the first parent is followed, but when a filter is applied it seems (just guessing)
that the "first" parent is selected *after* filtering, a behaviour that I feel does not match
the documentation.

Should the first-parent filter be applied first.

Example:

	git log --first-parent --pretty=format: --name-only v1.5.2|grep ^var.c|wc -l

counts four commits where var.c was changed, while

	git log --first-parent --pretty=format: --name-only v1.5.2 -- var.c |wc -l

gives me 23. 

-- robin



-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git log and --first-parent, Robin Rosenberg, (Mon Jul 23, 7:05 pm)
Re: git log and --first-parent, Robin Rosenberg, (Thu Jul 26, 4:30 pm)