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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 19, 2008, at 12:20 PM, Johannes Schindelin wrote:

On Sat, 19 Jan 2008, Paolo Bonzini wrote:

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.


That's what I've done for over a year (http://repo.or.cz/w/svn- wrapper.git -- it started out as a wrapper around SVN but also works fine with Git) and many people also made their own script to achieve something similar (e.g, vc-dwim http://lists.gnu.org/archive/html/bug- gnulib/2007-10/msg00135.html).

Having such a wrapper in Git would just make our life easier.

--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux