From: Olivier Marin <dkr+ml.git@free.fr>
To: "mike.gaffney" <mike.gaffney@asolutions.com>
Cc: git@vger.kernel.org
Subject: Re: Question: git commit -v uncomment Changes to be commited
Date: Thu, 19 Jun 2008 12:08:14 +0200 [thread overview]
Message-ID: <485A300E.2050404@free.fr> (raw)
In-Reply-To: <4859CCB5.9070200@asolutions.com>
mike.gaffney a écrit :
> I find myself always uncommenting the "Changes to be commited:" section
> on a git commit -v. Other than a nifty regex with vi, I'm wondering if
> there is a way to customize the unified diff that is created with commit
> -v. I've looked through the list, but it is one of those things where I
> don't really know how to ask the question (phrase the search). I would
> be glad of any help that people could give me.
You probably want to edit the hook .git/hooks/prepare-commit-msg in your
repository. Don't forget to enable it with chmod +x.
More information at:
http://www.kernel.org/pub/software/scm/git/docs/githooks.html
Olivier.
next prev parent reply other threads:[~2008-06-19 10:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-19 3:04 Question: git commit -v uncomment Changes to be commited mike.gaffney
2008-06-19 10:08 ` Olivier Marin [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-06-19 2:36 Mike Gaffney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=485A300E.2050404@free.fr \
--to=dkr+ml.git@free.fr \
--cc=git@vger.kernel.org \
--cc=mike.gaffney@asolutions.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).