<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/scripts/git-hooks, branch v8.22</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.22</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.22'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2013-02-18T01:28:49Z</updated>
<entry>
<title>maint: choose editor in the commit-msg git hook the same way git does</title>
<updated>2013-02-18T01:28:49Z</updated>
<author>
<name>Stefano Lattarini</name>
<email>stefano.lattarini@gmail.com</email>
</author>
<published>2013-02-15T13:39:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5bff307bdbee76adad7a7990cc23d8fd43b76252'/>
<id>urn:sha1:5bff307bdbee76adad7a7990cc23d8fd43b76252</id>
<content type='text'>
Git honours the GIT_EDITOR environment variable, the "core.editor" Git
configuration variable, and the EDITOR environment variable (in that
order, and defaulting to "vi" if none of them is set) to decide which
editor should be invoked for the user when he has to or want to edit
his commit message.

However, our commit-msg hook, when invoking an editor on behalf of the
user to allow him to fix a non-policy-complaint commit message, only
honoured the EDITOR environment variable.  To avoid potential annoying
inconsistencies, we should really use the same logic used by Git in the
selection of the editor.  Luckily, we don't have to duplicate this
logic (that would be brittle in the long term), as we can rely on the
"git var" command, designed exactly to be used in situations like this.

* scripts/git-hooks ($editor): Adjust definition.
</content>
</entry>
<entry>
<title>maint: don't reset PATH in the commit-msg git hook</title>
<updated>2013-02-18T01:27:47Z</updated>
<author>
<name>Stefano Lattarini</name>
<email>stefano.lattarini@gmail.com</email>
</author>
<published>2013-02-15T13:39:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=bf7b0e0358bc79141abdd4d974270fbc6bfcba27'/>
<id>urn:sha1:bf7b0e0358bc79141abdd4d974270fbc6bfcba27</id>
<content type='text'>
I have a custom 'editor' script in ~/bin, and a system-provided
'editor' program in /usr/bin (on Debian, this is a link set up the
"debian alternatives" subsystem).  My '$EDITOR' and '$GIT_EDITOR'
variables are set simply to 'editor' (no absolute path), which I
expect should point to my 'editor' script, since ~/bin precedes
/usr/bin in my PATH definition.  But the 'commit-msg' hook used in
coreutils unconditionally resets its PATH to '/bin:/usr/bin', which
causes it to call the "wrong" editor (the one in /usr/bin, not the
one in ~/bin) when it makes me update a botched commit message.

* scripts/git-hooks: Don't reset $ENV{PATH} to '/bin:/usr/bin',
which was only done to avoid failure when enabling Perl's taint
checking.
</content>
</entry>
<entry>
<title>maint: prevent trailing period at first line of a commit message</title>
<updated>2013-02-14T22:19:57Z</updated>
<author>
<name>Bernhard Voelker</name>
<email>mail@bernhard-voelker.de</email>
</author>
<published>2013-02-13T23:28:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c53c5e2395d206a1ab2c821eed8414270fbc07b4'/>
<id>urn:sha1:c53c5e2395d206a1ab2c821eed8414270fbc07b4</id>
<content type='text'>
* scripts/git-hooks/commit-msg (bad_first_line): Return an error
message if the first line of a commit message ends with a period.
</content>
</entry>
<entry>
<title>numfmt: a new command to format numbers</title>
<updated>2013-02-04T23:40:32Z</updated>
<author>
<name>Assaf Gordon</name>
<email>assafgordon@gmail.com</email>
</author>
<published>2012-12-06T22:30:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8a303a8963dd255566f1625243ff19b029e0ecec'/>
<id>urn:sha1:8a303a8963dd255566f1625243ff19b029e0ecec</id>
<content type='text'>
* AUTHORS: Add my name.
* NEWS: Mention the new program.
* README: Reference the new program.
* src/numfmt.c: New file.
* src/.gitignore: Ignore the new binary.
* build-aux/gen-lists-of-programs.sh: Update.
* scripts/git-hooks/commit-msg: Allow numfmt: commit prefix.
* po/POTFILES.in: Add new c file.
* tests/misc/numfmt.pl: A new test file giving &gt;93% coverage.
* tests/local.mk: Reference the new test.
* man/.gitignore: Ignore the new man page.
* man/local.mk: Reference the new man page.
* man/numfmt.x: A new template.
* doc/coreutils.texi: Document the new command.
</content>
</entry>
<entry>
<title>scripts: fix the Signed-off-by:-prohibiting hook to actually work</title>
<updated>2012-08-31T11:09:27Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-08-31T10:52:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1e4300e9263f81bee969db8a7ab135436fdf9ede'/>
<id>urn:sha1:1e4300e9263f81bee969db8a7ab135436fdf9ede</id>
<content type='text'>
* scripts/git-hooks/commit-msg: Fix new test: we're searching a
multi-line buffer, so add the //m modifier.
</content>
</entry>
<entry>
<title>scripts: git commit message hook: prohibit use of "Signed-off-by:"</title>
<updated>2012-08-30T11:12:44Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-08-30T11:07:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=19baf1679d175151acf8d0f3dafebc7c1ca5e417'/>
<id>urn:sha1:19baf1679d175151acf8d0f3dafebc7c1ca5e417</id>
<content type='text'>
* scripts/git-hooks/commit-msg: Reject a commit log message that
contains "Signed-off-by:".
</content>
</entry>
<entry>
<title>su: remove program (util-linux is now the best source for it)</title>
<updated>2012-06-06T20:33:08Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-05-25T16:10:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=928dd73762e69cfeaab4a7ec9dd8f30f86a45ed4'/>
<id>urn:sha1:928dd73762e69cfeaab4a7ec9dd8f30f86a45ed4</id>
<content type='text'>
* README: Omit "su" from list of programs.
* src/su.c: Remove file.
* src/Makefile.am: Remove su-related rules and variables.
* tests/misc/su-fail: Remove test.
* tests/Makefile.am (TESTS): Remove misc/su-fail.
* tests/misc/invalid-opt: Remove su-related code.
* src/.gitignore: Remove su.
* man/su.x: Remove file.
* man/Makefile.am (su.1): Remove rule.
* po/POTFILES.in: Remove su.c from the list.
* TODO: Remove ancient entry.
* NEWS (Changes in behavior): Mention it.
* doc/coreutils.texi: Remove su-related description.
* AUTHORS: Remove su.
* m4/lib-check.m4 (cu_LIB_CHECK): Remove file/macro.
* configure.ac: Remove su-related code and sole use of cu_LIB_CHECK.
* scripts/git-hooks/commit-msg: Remove su from this list, too.
</content>
</entry>
<entry>
<title>scripts: encourage use of shorter "bugs.gnu.org" in bug URLs</title>
<updated>2012-05-10T09:02:46Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-05-10T08:24:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=53276320df7f072d271e44a528c6b5ef1aca554d'/>
<id>urn:sha1:53276320df7f072d271e44a528c6b5ef1aca554d</id>
<content type='text'>
* scripts/git-hooks/commit-msg: Also ding debbugs.gnu.org URLs.
</content>
</entry>
<entry>
<title>scripts: allow one-line summary to start with "[Vv]ersion \d"</title>
<updated>2012-01-06T16:51:52Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-01-06T16:51:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ce0e4459c40fceb367d9383f2c078ac8a2a0ea60'/>
<id>urn:sha1:ce0e4459c40fceb367d9383f2c078ac8a2a0ea60</id>
<content type='text'>
* scripts/git-hooks/commit-msg: Do not reject the commit log
message generated by our automated release-and-tag process.
(bad_first_line): New function, extracted from...
(check_msg): ... here.  Use it.
</content>
</entry>
<entry>
<title>realpath: a new program to print the resolved path</title>
<updated>2012-01-03T11:36:32Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2011-12-27T00:30:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=77ea441f79aa115f79b47d9c1fc9c0004c5c7111'/>
<id>urn:sha1:77ea441f79aa115f79b47d9c1fc9c0004c5c7111</id>
<content type='text'>
This program is compatible with other realpath(1)
implementations, and also incorporates relpath like support,
through the --relative options.  The relpath support
was suggested by Peng Yu, who also provided an initial
implemenation of that functionality.

* AUTHORS: Add my name.
* NEWS: Mention the new command.
* README: Likewise.
* doc/coreutils.texi (realpath invocation): Add realpath info.
* man/Makefile.am (realpath.1): Add dependency.
* man/realpath.x: New template.
* man/.gitignore: Ignore generated man page.
* po/POTFILES.in: Add src/realpath.c.
* src/.gitignore: Exclude realpath.
* src/Makefile.am (EXTRA_PROGRAMS): Add realpath.
* src/realpath.c: New file.
* scripts/git-hooks/commit-msg: Add realpath to the list of prefixes.
* tests/Makefile.am (TESTS): Add misc/realpath.
* tests/misc/realpath: New file.
</content>
</entry>
</feed>
