<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion/git-completion.bash, branch v2.0.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.0.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.0.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-04-09T21:22:18Z</updated>
<entry>
<title>completion: fix completing args of aliased "push", "fetch", etc.</title>
<updated>2014-04-09T21:22:18Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2014-04-09T18:50:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=880111c11befaaf070e8ea1021bf11b4fb58c461'/>
<id>urn:sha1:880111c11befaaf070e8ea1021bf11b4fb58c461</id>
<content type='text'>
Some commands need the first word to determine the actual action that is
being executed, however, the command is wrong when we use an alias, for
example 'alias.p=push', if we try to complete 'git p origin ', the
result would be wrong because __git_complete_remote_or_refspec() doesn't
know where it came from.

So let's override words[1], so the alias 'p' is override by the actual
command, 'push'.

Reported-by: Aymeric Beaumet &lt;aymeric.beaumet@gmail.com&gt;
Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ss/completion-rec-sub-fetch-push'</title>
<updated>2014-03-14T21:24:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-03-14T21:24:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=baf9e83c2105527a75c2838d63e290ec87712ca6'/>
<id>urn:sha1:baf9e83c2105527a75c2838d63e290ec87712ca6</id>
<content type='text'>
* ss/completion-rec-sub-fetch-push:
  completion: teach --recurse-submodules to fetch, pull and push
</content>
</entry>
<entry>
<title>completion: teach --recurse-submodules to fetch, pull and push</title>
<updated>2014-02-11T19:17:04Z</updated>
<author>
<name>Sup Yut Sum</name>
<email>ch3cooli@gmail.com</email>
</author>
<published>2014-02-09T14:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4dd5c4709a51bb704c2c7fb59170b494b76daab9'/>
<id>urn:sha1:4dd5c4709a51bb704c2c7fb59170b494b76daab9</id>
<content type='text'>
Signed-off-by: Sup Yut Sum &lt;ch3cooli@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/complete-merge-base'</title>
<updated>2014-01-27T18:43:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-01-27T18:43:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ba98a2f6604fd2f9107ca9aec7d9b25e10a9ad60'/>
<id>urn:sha1:ba98a2f6604fd2f9107ca9aec7d9b25e10a9ad60</id>
<content type='text'>
* jk/complete-merge-base:
  completion: handle --[no-]fork-point options to git-rebase
  completion: complete merge-base options
</content>
</entry>
<entry>
<title>completion: handle --[no-]fork-point options to git-rebase</title>
<updated>2014-01-13T22:20:31Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-01-11T14:27:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4310e328d416be00e58e90b69ed3b62f5845c744'/>
<id>urn:sha1:4310e328d416be00e58e90b69ed3b62f5845c744</id>
<content type='text'>
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: complete merge-base options</title>
<updated>2014-01-13T22:20:25Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-01-11T14:27:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=85453fd1e36c581c1e6b7939e46badf2581837b3'/>
<id>urn:sha1:85453fd1e36c581c1e6b7939e46badf2581837b3</id>
<content type='text'>
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rr/completion-format-coverletter'</title>
<updated>2014-01-13T19:33:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-01-13T19:33:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ca46578a1d6ee3f6e27eafa7902fd4e62d58db7d'/>
<id>urn:sha1:ca46578a1d6ee3f6e27eafa7902fd4e62d58db7d</id>
<content type='text'>
The bash/zsh completion code did not know about format.coverLetter
among many format.* configuration variables.

* rr/completion-format-coverletter:
  completion: complete format.coverLetter
</content>
</entry>
<entry>
<title>completion: complete format.coverLetter</title>
<updated>2014-01-07T17:59:25Z</updated>
<author>
<name>Ramkumar Ramachandra</name>
<email>artagnon@gmail.com</email>
</author>
<published>2014-01-06T17:18:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=de06c13a9464440778ef060e42a0258c8c55f4ad'/>
<id>urn:sha1:de06c13a9464440778ef060e42a0258c8c55f4ad</id>
<content type='text'>
Signed-off-by: Ramkumar Ramachandra &lt;artagnon@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: fix remote.pushdefault</title>
<updated>2014-01-06T17:17:25Z</updated>
<author>
<name>Ramkumar Ramachandra</name>
<email>artagnon@gmail.com</email>
</author>
<published>2014-01-05T10:18:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c39a2f117853d89f0aee5b616c52df46a30b108b'/>
<id>urn:sha1:c39a2f117853d89f0aee5b616c52df46a30b108b</id>
<content type='text'>
When attempting to complete

  $ git config remote.push&lt;TAB&gt;

'pushdefault' doesn't come up. This is because "$cur" is matched with
"remote.*" and a list of remotes are completed. Add 'pushdefault' as a
candidate for completion too, using __gitcomp_nl_append ().

Signed-off-by: Ramkumar Ramachandra &lt;artagnon@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: fix branch.autosetup(merge|rebase)</title>
<updated>2014-01-06T17:17:05Z</updated>
<author>
<name>Ramkumar Ramachandra</name>
<email>artagnon@gmail.com</email>
</author>
<published>2014-01-05T10:18:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=422553df49bee5a5ea3c9106dfb7f1e4cbb54153'/>
<id>urn:sha1:422553df49bee5a5ea3c9106dfb7f1e4cbb54153</id>
<content type='text'>
When attempting to complete

  $ git config branch.auto&lt;TAB&gt;

'autosetupmerge' and 'autosetuprebase' don't come up. This is because
"$cur" is matched with "branch.*" and a list of branches are
completed. Add 'autosetupmerge', 'autosetuprebase' as candidates for
completion too, using __gitcomp_nl_append ().

Signed-off-by: Ramkumar Ramachandra &lt;artagnon@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
