Re: What should I do to display the diff of even a simple merge commit?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Petr Baudis
Date: Tuesday, February 9, 2010 - 4:57 pm

Hi!

On Wed, Feb 10, 2010 at 12:45:44AM +0100, Christian MICHON wrote:

  I'm not sure if there is any clever switch for this, but I usually
just use one of

	git diff mergecommit^1 mergecommit
	git diff mergecommit^2 mergecommit

depending on which parent I want the diff against. If you always do your
merges as "on mainline, merging in a topic" without fast-forwarding,
diff against the first parent will be probably the right one and you can
simply use:

	git diff mergecommit^ mergecommit

  Kind regards,

				Petr "Pasky" Baudis
--
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:
Re: What should I do to display the diff of even a simple ..., Petr Baudis, (Tue Feb 9, 4:57 pm)
Re: [PATCH] git log -p -m: Document, honor --first-parent, Junio C Hamano, (Tue Feb 9, 6:30 pm)
Re: [PATCH] git log -p -m: Document, honor --first-parent, Junio C Hamano, (Tue Feb 9, 8:23 pm)