Re: git commit -v does not removes the patch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: SZEDER
Date: Thursday, November 20, 2008 - 6:09 am

Hi,

On Wed, Nov 12, 2008 at 03:16:09AM -0500, Jeff King wrote:

I always want to see the diff while editing a commit message, even if
it's the commit message of a merge, a revert, a squash in rebase.
Since these commands do not have an option equivalent to 'git commit
-v', I wrote a little prepare-commit-msg hook to always append the
appropriate diff to the end of the appropriate commit message file.
This worked pretty well for the last couple of months, until 5/5 got
into maint.

So, what is the/is there a preferred way to always include the diff in
the commit message template and get it removed automatically?  Are
there any workarounds other than revert that commit locally?

Thanks,
Gábor
--
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 commit -v does not removes the patch, Santi Béjar, (Mon Nov 10, 8:20 am)
Re: git commit -v does not removes the patch, Jeff King, (Mon Nov 10, 11:10 am)
Re: git commit -v does not removes the patch, Santi Béjar, (Mon Nov 10, 3:34 pm)
Re: git commit -v does not removes the patch, Junio C Hamano, (Mon Nov 10, 4:27 pm)
Re: git commit -v does not removes the patch, Jeff King, (Mon Nov 10, 5:07 pm)
Re: git commit -v does not removes the patch, Santi Béjar, (Tue Nov 11, 12:56 am)
Re: git commit -v does not removes the patch, Jeff King, (Tue Nov 11, 3:29 am)
Re: git commit -v does not removes the patch, Santi Béjar, (Tue Nov 11, 4:20 am)
Re: git commit -v does not removes the patch, Junio C Hamano, (Tue Nov 11, 10:13 am)
Re: git commit -v does not removes the patch, Jeff King, (Wed Nov 12, 1:16 am)
[PATCH 1/5] define empty tree sha1 as a macro, Jeff King, (Wed Nov 12, 1:17 am)
Re: git commit -v does not removes the patch, SZEDER , (Thu Nov 20, 6:09 am)
Re: git commit -v does not removes the patch, Jeff King, (Thu Nov 20, 8:20 am)
Re: git commit -v does not removes the patch, SZEDER , (Sat Nov 22, 8:55 am)
Re: git commit -v does not removes the patch, Jeff King, (Sat Nov 22, 1:10 pm)
Re: git commit -v does not removes the patch, Junio C Hamano, (Sat Nov 22, 3:43 pm)