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

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

 



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.
--
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