<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t, branch v2.6.7</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.6.7</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.6.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-01-04T22:03:08Z</updated>
<entry>
<title>Merge branch 'jk/pending-keep-tag-name' into maint</title>
<updated>2016-01-04T22:03:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-01-04T22:03:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e3073cf895f335c6544d17b143c6e272436d149f'/>
<id>urn:sha1:e3073cf895f335c6544d17b143c6e272436d149f</id>
<content type='text'>
History traversal with "git log --source" that starts with an
annotated tag failed to report the tag as "source", due to an
old regression in the command line parser back in v2.2 days.

* jk/pending-keep-tag-name:
  revision.c: propagate tag names from pending array
</content>
</entry>
<entry>
<title>Merge branch 'jk/symbolic-ref-maint' into maint</title>
<updated>2016-01-04T22:02:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-01-04T22:02:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e0025275827ea57a3a14aecfde1cd3812e70652a'/>
<id>urn:sha1:e0025275827ea57a3a14aecfde1cd3812e70652a</id>
<content type='text'>
"git symbolic-ref" forgot to report a failure with its exit status.

* jk/symbolic-ref-maint:
  t1401: test reflog creation for git-symbolic-ref
  symbolic-ref: propagate error code from create_symref()
</content>
</entry>
<entry>
<title>t1401: test reflog creation for git-symbolic-ref</title>
<updated>2015-12-21T20:06:31Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-12-20T07:27:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f91b2732b3df6bae21512af58e0cfccbd5301331'/>
<id>urn:sha1:f91b2732b3df6bae21512af58e0cfccbd5301331</id>
<content type='text'>
The current code writes a reflog entry whenever we update a
symbolic ref, but we never test that this is so. Let's add a
test to make sure upcoming refactoring doesn't cause a
regression.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>symbolic-ref: propagate error code from create_symref()</title>
<updated>2015-12-21T20:03:03Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-12-20T07:27:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3e4068ed90fd3c6f24303560113aae6dbb758699'/>
<id>urn:sha1:3e4068ed90fd3c6f24303560113aae6dbb758699</id>
<content type='text'>
If create_symref() fails, git-symbolic-ref will still exit
with code 0, and our caller has no idea that the command did
nothing.

This appears to have been broken since the beginning of time
(e.g., it is not a regression where create_symref() stopped
calling die() or something similar).

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>revision.c: propagate tag names from pending array</title>
<updated>2015-12-17T18:47:56Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-12-17T06:47:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=728350b76a2244e7cf79412f46e990e763ebf89e'/>
<id>urn:sha1:728350b76a2244e7cf79412f46e990e763ebf89e</id>
<content type='text'>
When we unwrap a tag to find its commit for a traversal, we
do not propagate the "name" field of the tag in the pending
array (i.e., the ref name the user gave us in the first
place) to the commit (instead, we use an empty string). This
means that "git log --source" will never show the tag-name
for commits we reach through it.

This was broken in 2073949 (traverse_commit_list: support
pending blobs/trees with paths, 2014-10-15). That commit
tried to be careful and avoid propagating the path
information for a tag (which would be nonsensical) to trees
and blobs. But it should not have cut off the "name" field,
which should carry forward to children.

Note that this does mean that the "name" field will carry
forward to blobs and trees, too. Whereas prior to 2073949,
we always gave them an empty string. This is the right thing
to do, but in practice no callers probably use it (since now
we have an explicit separate "path" field, which was the
point of 2073949).

We add tests here not only for the broken case, but also a
basic sanity test of "log --source" in general, which did
not have any coverage in the test suite.

Reported-by: Raymundo &lt;gypark@gmail.com&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ls/p4-keep-empty-commits' into maint</title>
<updated>2015-12-15T17:34:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-12-15T17:34:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f97f2e5c645759ec3204ca99cbc5f61caf9201de'/>
<id>urn:sha1:f97f2e5c645759ec3204ca99cbc5f61caf9201de</id>
<content type='text'>
"git p4" used to import Perforce CLs that touch only paths outside
the client spec as empty commits.  It has been corrected to ignore
them instead, with a new configuration git-p4.keepEmptyCommits as a
backward compatibility knob.

* ls/p4-keep-empty-commits:
  git-p4: add option to keep empty commits
</content>
</entry>
<entry>
<title>Merge branch 'cb/t3404-shellquote' into maint</title>
<updated>2015-12-11T19:14:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-12-11T19:14:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=76058817e80725a2fd1f4935289f663b7aefc024'/>
<id>urn:sha1:76058817e80725a2fd1f4935289f663b7aefc024</id>
<content type='text'>
* cb/t3404-shellquote:
  t3404: fix quoting of redirect for some versions of bash
</content>
</entry>
<entry>
<title>Merge branch 'jk/test-lint-forbid-when-finished-in-subshell' into maint</title>
<updated>2015-12-11T19:14:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-12-11T19:14:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4cb5488fa6cd1dc3cea253e7d8df6bf9d945653b'/>
<id>urn:sha1:4cb5488fa6cd1dc3cea253e7d8df6bf9d945653b</id>
<content type='text'>
Because "test_when_finished" in our test framework queues the
clean-up tasks to be done in a shell variable, it should not be
used inside a subshell.  Add a mechanism to allow 'bash' to catch
such uses, and fix the ones that were found.

* jk/test-lint-forbid-when-finished-in-subshell:
  test-lib-functions: detect test_when_finished in subshell
  t7800: don't use test_config in a subshell
  test-lib-functions: support "test_config -C &lt;dir&gt; ..."
  t5801: don't use test_when_finished in a subshell
  t7610: don't use test_config in a subshell
</content>
</entry>
<entry>
<title>git-p4: add option to keep empty commits</title>
<updated>2015-12-10T18:45:02Z</updated>
<author>
<name>Lars Schneider</name>
<email>larsxschneider@gmail.com</email>
</author>
<published>2015-12-08T09:36:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4ae048e67e5f0d786b9febc438433d95f18e5937'/>
<id>urn:sha1:4ae048e67e5f0d786b9febc438433d95f18e5937</id>
<content type='text'>
A changelist that contains only excluded files due to a client spec was
imported as an empty commit. Fix that issue by ignoring these commits.
Add option "git-p4.keepEmptyCommits" to make the previous behavior
available.

Signed-off-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Helped-by: Pete Harlan
Acked-by: Luke Diamand &lt;luke@diamand.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sg/bash-prompt-dirty-orphan' into maint</title>
<updated>2015-12-08T22:05:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-12-08T22:05:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e6ed5a438c7a5436a08c08e269174d9975f8dc1d'/>
<id>urn:sha1:e6ed5a438c7a5436a08c08e269174d9975f8dc1d</id>
<content type='text'>
Produce correct "dirty" marker for shell prompts, even when we
are on an orphan or an unborn branch.

* sg/bash-prompt-dirty-orphan:
  bash prompt: indicate dirty index even on orphan branches
  bash prompt: remove a redundant 'git diff' option
  bash prompt: test dirty index and worktree while on an orphan branch
</content>
</entry>
</feed>
