Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: Question: git commit -v uncomment Changes to be commited

From: Olivier Marin <hidden>
Date: 2016-06-15 22:44:47

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help