* Question: git commit -v uncomment Changes to be commited
@ 2008-06-19 2:36 Mike Gaffney
0 siblings, 0 replies; 3+ messages in thread
From: Mike Gaffney @ 2008-06-19 2:36 UTC (permalink / raw)
To: git
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.
Thanks,
gaffo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Question: git commit -v uncomment Changes to be commited
@ 2008-06-19 3:04 mike.gaffney
2008-06-19 10:08 ` Olivier Marin
0 siblings, 1 reply; 3+ messages in thread
From: mike.gaffney @ 2008-06-19 3:04 UTC (permalink / raw)
To: git
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.
Thanks,
Mike Gaffney
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question: git commit -v uncomment Changes to be commited
2008-06-19 3:04 mike.gaffney
@ 2008-06-19 10:08 ` Olivier Marin
0 siblings, 0 replies; 3+ messages in thread
From: Olivier Marin @ 2008-06-19 10:08 UTC (permalink / raw)
To: mike.gaffney; +Cc: git
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-19 10:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-19 2:36 Question: git commit -v uncomment Changes to be commited Mike Gaffney
-- strict thread matches above, loose matches on Subject: below --
2008-06-19 3:04 mike.gaffney
2008-06-19 10:08 ` Olivier Marin
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).