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: Git Mailing List <git@...>
Date: Friday, January 18, 2008 - 5:08 pm

Paolo Bonzini, Fri, Jan 18, 2008 20:46:49 +0100:

Except that "template" is already taken. Someone uses it and some may
even got used to "template" having that meaning.


Not really. It will be run even if the template (the one Git have
already) is not used.

It really looks a bit complicated. If at all, how about running that
"pre-editor" hook with information about where the message comes from?

I.e. if the message comes from a template:

    preedit-commit-msg .git/COMMIT_MSG template

or, for a message coming from commit:

    preedit-commit-msg .git/COMMIT_MSG commit 0123456789abdef

or, for a message coming from a file

    preedit-commit-msg .git/COMMIT_MSG file user/path/to/file

and finally, for a new message:

    preedit-commit-msg .git/COMMIT_MSG

?
-
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:
[PATCH] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Fri Jan 18, 10:51 am)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Junio C Hamano, (Fri Jan 18, 6:05 pm)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Sat Jan 19, 5:32 am)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Johannes Schindelin, (Sat Jan 19, 7:20 am)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Sat Jan 19, 12:04 pm)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Benoit Sigoure, (Sat Jan 19, 11:41 am)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Alex Riesen, (Fri Jan 18, 3:05 pm)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Fri Jan 18, 3:46 pm)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Alex Riesen, (Fri Jan 18, 5:08 pm)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Johannes Schindelin, (Fri Jan 18, 11:47 am)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Fri Jan 18, 11:51 am)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Johannes Schindelin, (Fri Jan 18, 12:06 pm)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Fri Jan 18, 12:37 pm)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Johannes Schindelin, (Fri Jan 18, 2:06 pm)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Benoit Sigoure, (Fri Jan 18, 3:01 pm)
Re: [PATCH] git-commit: add a prepare-commit-msg hook, Paolo Bonzini, (Fri Jan 18, 2:51 pm)