<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/templates, branch v2.3.7</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.7</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-12-22T18:27:42Z</updated>
<entry>
<title>pre-push.sample: remove unnecessary and misleading IFS=' '</title>
<updated>2014-12-22T18:27:42Z</updated>
<author>
<name>Jim Hill</name>
<email>gjthill@gmail.com</email>
</author>
<published>2014-12-21T19:26:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3af74cfb153e20277a1d22414f04249d90d34d5c'/>
<id>urn:sha1:3af74cfb153e20277a1d22414f04249d90d34d5c</id>
<content type='text'>
The sample hook explicitly sets IFS to SP and nothing else so that
the "read" used in the per-ref while loop that iterates over
"&lt;localref&gt; SP &lt;localsha1&gt; SP &lt;remoteref&gt; SP &lt;remotesha&gt;" records,
where we know refs and sha1s will not have SPs, would split them
correctly.

While this is not wrong per-se, it is not necessary; because we know
these fields do not contain HT or LF, either, we can simply leave
IFS the default.

This will also prevent those who cut and paste from this sample from
getting bitten when they write things in the per-ref loop that need
splitting with the default $IFS (e.g. use $(git rev-list ...) to
produce one-record-per-line output).

Signed-off-by: Jim Hill &lt;gjthill@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pre-push.sample: Write error message to stderr</title>
<updated>2014-09-11T22:26:35Z</updated>
<author>
<name>W. Trevor King</name>
<email>wking@tremily.us</email>
</author>
<published>2014-09-11T20:35:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1a947ba3a3eebea80be6a6d1000614884807bc8b'/>
<id>urn:sha1:1a947ba3a3eebea80be6a6d1000614884807bc8b</id>
<content type='text'>
githooks(5) suggests:

  Information about why the push is rejected may be sent to the user
  by writing to standard error.

So follow that advice in the sample.

Signed-off-by: W. Trevor King &lt;wking@tremily.us&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>sample pre-commit hook: use --bool when retrieving config var</title>
<updated>2013-09-24T19:26:49Z</updated>
<author>
<name>Johan Herland</name>
<email>johan@herland.net</email>
</author>
<published>2013-09-24T07:52:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=af1748b31eb68643f1b8d9d918f43611cf96d257'/>
<id>urn:sha1:af1748b31eb68643f1b8d9d918f43611cf96d257</id>
<content type='text'>
Currently if you set

	[hooks]
		allowNonAscii

(or allownonascii = 1, or = yes) in your .git/config then the sample
pre-commit misinterprets the value as "false" and rejects non-ASCII
filenames.  Use "git config --bool" to get the usual nicer boolean
handling.

Signed-off-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint-1.8.3' into maint</title>
<updated>2013-09-03T20:54:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-09-03T20:54:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8ed64dfe7377971963182e9cfcd4b8da82337438'/>
<id>urn:sha1:8ed64dfe7377971963182e9cfcd4b8da82337438</id>
<content type='text'>
* maint-1.8.3:
  fix shell syntax error in template
</content>
</entry>
<entry>
<title>fix shell syntax error in template</title>
<updated>2013-08-30T16:56:30Z</updated>
<author>
<name>Thorsten Glaser</name>
<email>t.glaser@tarent.de</email>
</author>
<published>2013-08-30T10:40:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6897a64b652d83e477389ec1a248b47b8d821db6'/>
<id>urn:sha1:6897a64b652d83e477389ec1a248b47b8d821db6</id>
<content type='text'>
An if clause must not be empty; add a "colon" command.

Signed-off-by: Thorsten Glaser &lt;t.glaser@tarent.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>templates: spell ASCII in uppercase in pre-commit hook</title>
<updated>2013-07-15T16:52:57Z</updated>
<author>
<name>Richard Hartmann</name>
<email>richih.mailinglist@gmail.com</email>
</author>
<published>2013-07-14T16:21:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7b3742fa466401574a2ff380d5d121b2ac5cea45'/>
<id>urn:sha1:7b3742fa466401574a2ff380d5d121b2ac5cea45</id>
<content type='text'>
The name of the encoding is ASCII, not ascii.

Signed-off-by: Richard Hartmann &lt;richih.mailinglist@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>templates: Reformat pre-commit hook's message</title>
<updated>2013-07-15T16:52:52Z</updated>
<author>
<name>Richard Hartmann</name>
<email>richih.mailinglist@gmail.com</email>
</author>
<published>2013-07-14T16:21:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b1d5a570fc0176c77a52896e3b59174baa95e8bf'/>
<id>urn:sha1:b1d5a570fc0176c77a52896e3b59174baa95e8bf</id>
<content type='text'>
Now that we're using heredoc, the message can span the full 80 chars.

Signed-off-by: Richard Hartmann &lt;richih.mailinglist@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>templates: Use heredoc in pre-commit hook</title>
<updated>2013-07-15T16:51:16Z</updated>
<author>
<name>Richard Hartmann</name>
<email>richih.mailinglist@gmail.com</email>
</author>
<published>2013-07-14T16:21:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=27b6e17a6d84a18861f05fd7c684ab443bf15244'/>
<id>urn:sha1:27b6e17a6d84a18861f05fd7c684ab443bf15244</id>
<content type='text'>
This way, it is easier to see how the text we give the end users
would look like, and it will allow us to use (near) full width
of the source file.

Signed-off-by: Richard Hartmann &lt;richih.mailinglist@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pre-push.sample: Make the script executable</title>
<updated>2013-06-11T18:22:00Z</updated>
<author>
<name>Wieland Hoffmann</name>
<email>themineo@gmail.com</email>
</author>
<published>2013-06-11T12:14:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3ea59412e83065b38b52cb8d7b8432e0f516de6c'/>
<id>urn:sha1:3ea59412e83065b38b52cb8d7b8432e0f516de6c</id>
<content type='text'>
githooks(5) says that "[...]the .sample files are executable by default"
which was not true.

Signed-off-by: Wieland Hoffmann &lt;themineo@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>templates/hooks--update.sample: use a lowercase "usage:" string</title>
<updated>2013-02-24T21:31:09Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2013-02-24T00:50:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9a8a84c319e51eb25bfc0ee44d064617c310aa9e'/>
<id>urn:sha1:9a8a84c319e51eb25bfc0ee44d064617c310aa9e</id>
<content type='text'>
Make the usage string consistent with Git.

Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
