<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/templates, branch v2.6.1</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v2.6.1</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v2.6.1'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2015-05-11T21:23:39Z</updated>
<entry>
<title>Merge branch 'nd/multiple-work-trees'</title>
<updated>2015-05-11T21:23:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-05-11T21:23:39Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=68a2e6a2c80303144807c8c91a087427e3c8e727'/>
<id>urn:sha1:68a2e6a2c80303144807c8c91a087427e3c8e727</id>
<content type='text'>
A replacement for contrib/workdir/git-new-workdir that does not
rely on symbolic links and make sharing of objects and refs safer
by making the borrowee and borrowers aware of each other.

* nd/multiple-work-trees: (41 commits)
  prune --worktrees: fix expire vs worktree existence condition
  t1501: fix test with split index
  t2026: fix broken &amp;&amp;-chain
  t2026 needs procondition SANITY
  git-checkout.txt: a note about multiple checkout support for submodules
  checkout: add --ignore-other-wortrees
  checkout: pass whole struct to parse_branchname_arg instead of individual flags
  git-common-dir: make "modules/" per-working-directory directory
  checkout: do not fail if target is an empty directory
  t2025: add a test to make sure grafts is working from a linked checkout
  checkout: don't require a work tree when checking out into a new one
  git_path(): keep "info/sparse-checkout" per work-tree
  count-objects: report unused files in $GIT_DIR/worktrees/...
  gc: support prune --worktrees
  gc: factor out gc.pruneexpire parsing code
  gc: style change -- no SP before closing parenthesis
  checkout: clean up half-prepared directories in --to mode
  checkout: reject if the branch is already checked out elsewhere
  prune: strategies for linked checkouts
  checkout: support checking out into a new working directory
  ...
</content>
</entry>
<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.stealer.net/cgit.cgi/user/sven/git.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>*.sh: avoid hardcoding $GIT_DIR/hooks/...</title>
<updated>2014-12-01T19:00:13Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2014-11-30T08:24:38Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=b849b954d22ee069b0edec1a12c78782ae1e629d'/>
<id>urn:sha1:b849b954d22ee069b0edec1a12c78782ae1e629d</id>
<content type='text'>
If $GIT_COMMON_DIR is set, it should be $GIT_COMMON_DIR/hooks/, not
$GIT_DIR/hooks/. Just let rev-parse --git-path handle it.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@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.stealer.net/cgit.cgi/user/sven/git.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.stealer.net/cgit.cgi/user/sven/git.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.stealer.net/cgit.cgi/user/sven/git.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.stealer.net/cgit.cgi/user/sven/git.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.stealer.net/cgit.cgi/user/sven/git.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.stealer.net/cgit.cgi/user/sven/git.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.stealer.net/cgit.cgi/user/sven/git.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>
</feed>
