<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion/git-completion.bash, branch v2.2.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.2.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.2.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-10-29T17:08:04Z</updated>
<entry>
<title>Merge branch 'oc/mergetools-beyondcompare'</title>
<updated>2014-10-29T17:08:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-29T17:08:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c1777a297043a06d6c18d383d17447f5eefcdcbe'/>
<id>urn:sha1:c1777a297043a06d6c18d383d17447f5eefcdcbe</id>
<content type='text'>
* oc/mergetools-beyondcompare:
  mergetool: rename bc3 to bc
</content>
</entry>
<entry>
<title>Merge branch 'js/completion-hide-not-a-repo'</title>
<updated>2014-10-21T20:28:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-21T20:28:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=693f62ff6862b2bcee2bfba8db8d1e9196fa239c'/>
<id>urn:sha1:693f62ff6862b2bcee2bfba8db8d1e9196fa239c</id>
<content type='text'>
Some internal error messages leaked out of the bash completion when
typing "git cmd &lt;TAB&gt;" and the machinery tried to complete
refnames.

* js/completion-hide-not-a-repo:
  completion: silence "fatal: Not a git repository" error
</content>
</entry>
<entry>
<title>mergetool: rename bc3 to bc</title>
<updated>2014-10-21T18:25:30Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-20T22:49:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f13f9b0eab8ec4880be0e4423ebdcfdbcd41eeb6'/>
<id>urn:sha1:f13f9b0eab8ec4880be0e4423ebdcfdbcd41eeb6</id>
<content type='text'>
Beyond Compare version 4 works the same way as version 3, so rename
the existing "bc3" adaptor to just "bc", while keeping "bc3" as a
backward compatible wrapper.

Noticed-by: Olivier Croquette &lt;ocroquette@free.fr&gt;
Helped-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/completion-no-chdir'</title>
<updated>2014-10-16T21:16:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-16T21:16:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=98349e5364da6164add4ede3e63ceba2cc39159b'/>
<id>urn:sha1:98349e5364da6164add4ede3e63ceba2cc39159b</id>
<content type='text'>
* jc/completion-no-chdir:
  completion: use "git -C $there" instead of (cd $there &amp;&amp; git ...)
</content>
</entry>
<entry>
<title>completion: silence "fatal: Not a git repository" error</title>
<updated>2014-10-14T20:06:13Z</updated>
<author>
<name>John Szakmeister</name>
<email>john@szakmeister.net</email>
</author>
<published>2014-10-14T10:49:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8f7ff5b2fe7f52966c034a12cf8980dae1160222'/>
<id>urn:sha1:8f7ff5b2fe7f52966c034a12cf8980dae1160222</id>
<content type='text'>
It is possible that a user is trying to run a git command and fail
to realize that they are not in a git repository or working tree.
When trying to complete an operation, __git_refs would fall to a
degenerate case and attempt to use "git for-each-ref", which would
emit the error.

Hide this error message coming from "git for-each-ref".

Signed-off-by: John Szakmeister &lt;john@szakmeister.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: use "git -C $there" instead of (cd $there &amp;&amp; git ...)</title>
<updated>2014-10-09T22:06:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-09T20:45:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fca416a41e90be0102b48949522ff0d2dc258c53'/>
<id>urn:sha1:fca416a41e90be0102b48949522ff0d2dc258c53</id>
<content type='text'>
We have had "git -C $there" to first go to a different directory
and run a Git command without changing the arguments for quite some
time.  Use it instead of (cd $there &amp;&amp; git ...) in the completion
script.

This allows us to lose the work-around for misfeatures of modern
interactive-minded shells that make "cd" unusable in scripts (e.g.
end users' $CDPATH taking us to unexpected places in any POSIX
shell, and chpwd functions spewing unwanted output in zsh).

Based on Øystein Walle's idea, which was raised during the
discussion on the solution by Brandon Turner for a problem zsh users
had with RVM which mucks with chpwd_functions in users' environments
(https://github.com/wayneeseguin/rvm/issues/3076).

As $root variable, which is used to direct where to chdir to, is set
to "." based on if $2 to __git_index_files is set (not if it is empty),
the only caller of the function is fixed not to pass the optional $2
when it does not want us to switch to a different directory.  Otherwise
we would end up doing "git -C '' command...", which would not work.

Maybe we would want "git -C '' command..." to mean "do not chdir
anywhere", but that is a spearate topic.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: add --show-signature for log and show</title>
<updated>2014-10-07T19:00:48Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2014-10-04T23:20:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2ca0b197b89e1dad0166f60622f087296764dc42'/>
<id>urn:sha1:2ca0b197b89e1dad0166f60622f087296764dc42</id>
<content type='text'>
Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tb/complete-diff-ignore-blank-lines'</title>
<updated>2014-09-19T18:38:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-09-19T18:38:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b6de2dcb80849c5deed613cfdaf194f933d8c0d6'/>
<id>urn:sha1:b6de2dcb80849c5deed613cfdaf194f933d8c0d6</id>
<content type='text'>
* tb/complete-diff-ignore-blank-lines:
  completion: Add --ignore-blank-lines for diff
</content>
</entry>
<entry>
<title>completion: Add --ignore-blank-lines for diff</title>
<updated>2014-09-03T19:23:10Z</updated>
<author>
<name>Thomas Braun</name>
<email>thomas.braun@virtuell-zuhause.de</email>
</author>
<published>2014-09-03T15:00:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c254516737c2c1e6ef8ce49d798cebb06fd6d3ee'/>
<id>urn:sha1:c254516737c2c1e6ef8ce49d798cebb06fd6d3ee</id>
<content type='text'>
Signed-off-by: Thomas Braun &lt;thomas.braun@virtuell-zuhause.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/more-push-completion'</title>
<updated>2014-07-30T21:21:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-07-30T21:21:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0d9cb2d14e4f26c122ab2532b4ceb3e757fb87b7'/>
<id>urn:sha1:0d9cb2d14e4f26c122ab2532b4ceb3e757fb87b7</id>
<content type='text'>
* jk/more-push-completion:
  completion: complete `git push --force-with-lease=`
  completion: add some missing options to `git push`
  completion: complete "unstuck" `git push --recurse-submodules`
</content>
</entry>
</feed>
