<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/scripts/git-hooks/pre-commit, branch v9.2</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.2</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2011-11-12T13:00:18Z</updated>
<entry>
<title>maint: sync pre-commit script with git's</title>
<updated>2011-11-12T13:00:18Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-11-12T13:00:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=635bcd0d19a1f8d16cb74eac3cdbf1c2694063ed'/>
<id>urn:sha1:635bcd0d19a1f8d16cb74eac3cdbf1c2694063ed</id>
<content type='text'>
* scripts/git-hooks/pre-commit (allownonascii): Remove double quotes
around $(...) construct, to make this file identical to git's
sample hook script.
</content>
</entry>
<entry>
<title>maint: add git hook scripts</title>
<updated>2011-10-23T09:44:40Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-10-20T15:26:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2ade806cf5740fa0ef0f7211699e5b4e7ce90464'/>
<id>urn:sha1:2ade806cf5740fa0ef0f7211699e5b4e7ce90464</id>
<content type='text'>
We find it worthwhile to use consistent commit summary prefixes.
To that end, the commit-msg script requires that all commits I make
start with "$P: " (where $P is one of ~100 programs in coreutils)
or one of a few other words, like gnulib tests maint doc build.
It allows more than one word, so e.g., "cat tail head: " would also
be accepted.  Pádraig Brady wrote the initial version, with its
72-column and blank-if-present second line checks.
The pre-commit script is the same as the git-supplied sample script,
modulo a bug fix and the "exec 1&gt;&amp;2" redirection.
* scripts/git-hooks/commit-msg: New file.
* scripts/git-hooks/pre-commit: New file.
* scripts/git-hooks/applypatch-msg: New file.  Verbatim from .sample.
* cfg.mk: Exempt two of the new scripts from the no-leading-TABs check,
since they're nearly verbatim from git, and we want to stay in sync.
Exempt the commit-msg script from the no-"fail=0" check.
</content>
</entry>
</feed>
