Re: [PATCH] git-commit: add a prepare-commit-msg hook

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Paolo Bonzini <bonzini@...>
Cc: Johannes Schindelin <Johannes.Schindelin@...>, Git Mailing List <git@...>
Date: Monday, January 21, 2008 - 6:44 pm

Paolo Bonzini <bonzini@gnu.org> writes:


Thanks.  I think the approach is sane, and it naturally falls
into the second category of "why we might want to a hook for"
list I sent earlier.

I do not think adding "-X makes that hook ignored" for
description of every option is warranted, though.  Users should
not have to be reminded that there is a hook he may never use
and it does not trigger if he specifies his own message using -X
or -Y or -Z option.

The usage of the hook is optional, and the primary description
of what it does and why a user might want to use it should be in
its own description (perhaps in hooks.txt and a section that
lists hooks in git-commit manpage).  As long as that description
makes it clear that the hook is a way to specify a dynamic
template in a situation that requries a fresh message, the users
who are interested in using it would perfectly well understand
that options that make git-commit not to take a fresh message
would not invoke the hook.
-
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: [PATCH] git-commit: add a prepare-commit-msg hook, Junio C Hamano, (Sun Jan 20, 6:28 pm)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Mon Jan 21, 2:16 am)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Johannes Schindelin, (Mon Jan 21, 7:04 am)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Mon Jan 21, 8:14 am)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Johannes Schindelin, (Mon Jan 21, 8:46 am)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Mon Jan 21, 8:59 am)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Junio C Hamano, (Mon Jan 21, 6:44 pm)