Thread (11 messages) read the whole thread 11 messages, 4 authors, 2016-06-15

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

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:06

Hi,

On Sat, 19 Jan 2008, Paolo Bonzini wrote:
quoted
On the other hand, if you want to always cause an action before 
running a git opeation locally, you do not have to have a hook. You 
can just prepare such a message based on GNU ChangeLog and then run 
git-commit with -F, both inside your wrapper.
I see two other possibilities:

1) [..]

2) [..]

3) [..]
Of course, there is a fourth of "two other" possibilities:

Make a script calling git-commit with "-F - -e" and pipe your generated 
template into it.

Use this script whenever you want to create a new commit.

Hth,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help