<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion, 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>2015-04-27T19:23:51Z</updated>
<entry>
<title>Merge branch 'ma/bash-completion-leaking-x' into maint</title>
<updated>2015-04-27T19:23:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-04-27T19:23:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=89ba311df399d27a962b273e1acd95a38af2c821'/>
<id>urn:sha1:89ba311df399d27a962b273e1acd95a38af2c821</id>
<content type='text'>
The completion script (in contrib/) contaminated global namespace
and clobbered on a shell variable $x.

* ma/bash-completion-leaking-x:
  completion: fix global bash variable leak on __gitcompappend
</content>
</entry>
<entry>
<title>completion: fix global bash variable leak on __gitcompappend</title>
<updated>2015-04-13T05:35:51Z</updated>
<author>
<name>Márcio Almada</name>
<email>marcio.web2@gmail.com</email>
</author>
<published>2015-04-08T05:45:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=852ff1c362b9e92f4bc08997c4837c6190d6e530'/>
<id>urn:sha1:852ff1c362b9e92f4bc08997c4837c6190d6e530</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sg/completion-gitcomp-nl-for-refs' into maint</title>
<updated>2015-03-28T16:33:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-28T16:33:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4eea8e3fa0c41137d7126a0ff262eb7a85991b90'/>
<id>urn:sha1:4eea8e3fa0c41137d7126a0ff262eb7a85991b90</id>
<content type='text'>
Code clean-up.

* sg/completion-gitcomp-nl-for-refs:
  completion: use __gitcomp_nl() for completing refs
</content>
</entry>
<entry>
<title>Merge branch 'ct/prompt-untracked-fix' into maint</title>
<updated>2015-03-28T16:33:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-28T16:33:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=245dd15aa9e086d82de7a9c947aa916e6d702f48'/>
<id>urn:sha1:245dd15aa9e086d82de7a9c947aa916e6d702f48</id>
<content type='text'>
The prompt script (in contrib/) did not show the untracked sign
when working in a subdirectory without any untracked files.

* ct/prompt-untracked-fix:
  git prompt: use toplevel to find untracked files
</content>
</entry>
<entry>
<title>Merge branch 'js/completion-ctags-pattern-substitution-fix' into maint</title>
<updated>2015-03-27T20:00:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-27T20:00:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=792c57273f5ccc318c93d32112548fbd033f5964'/>
<id>urn:sha1:792c57273f5ccc318c93d32112548fbd033f5964</id>
<content type='text'>
The code that reads from the ctags file in the completion script
(in contrib/) did not spell ${param/pattern/string} substitution
correctly, which happened to work with bash but not with zsh.

* js/completion-ctags-pattern-substitution-fix:
  contrib/completion: escape the forward slash in __git_match_ctag
</content>
</entry>
<entry>
<title>Merge branch 'sg/completion-remote' into maint</title>
<updated>2015-03-23T18:23:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-23T18:23:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7d6f6e373007553d747b4f0f5083d66fdd0c17c5'/>
<id>urn:sha1:7d6f6e373007553d747b4f0f5083d66fdd0c17c5</id>
<content type='text'>
Code simplification.

* sg/completion-remote:
  completion: simplify __git_remotes()
  completion: add a test for __git_remotes() helper function
</content>
</entry>
<entry>
<title>completion: use __gitcomp_nl() for completing refs</title>
<updated>2015-03-22T23:41:12Z</updated>
<author>
<name>SZEDER Gábor</name>
<email>szeder@ira.uka.de</email>
</author>
<published>2015-03-22T12:03:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=260d5850ad452adb7ac0ab70d0a5d0211bdd967f'/>
<id>urn:sha1:260d5850ad452adb7ac0ab70d0a5d0211bdd967f</id>
<content type='text'>
We do that almost everywhere, because it's faster for large number of
refs, see a31e62629 (completion: optimize refs completion, 2011-10-15).
These were the last two places where we still used __gitcomp() for
completing refs.

Signed-off-by: SZEDER Gábor &lt;szeder@ira.uka.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git prompt: use toplevel to find untracked files</title>
<updated>2015-03-15T21:23:22Z</updated>
<author>
<name>Cody A Taylor</name>
<email>codemister99@yahoo.com</email>
</author>
<published>2015-03-13T02:24:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9bdc5173f0bc514d0b76165d45729622b2ad4d89'/>
<id>urn:sha1:9bdc5173f0bc514d0b76165d45729622b2ad4d89</id>
<content type='text'>
The __git_ps1() prompt function would not show an untracked state
when all the untracked files are outside the current working
directory.

Signed-off-by: Cody A Taylor &lt;codemister99@yahoo.com&gt;
Helped-by: SZEDER Gábor &lt;szeder@ira.uka.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>contrib/completion: escape the forward slash in __git_match_ctag</title>
<updated>2015-03-15T01:59:09Z</updated>
<author>
<name>John Szakmeister</name>
<email>john@szakmeister.net</email>
</author>
<published>2015-03-14T13:40:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=db8d750876ce9c43b23ddfdbe618ec5dd12767ee'/>
<id>urn:sha1:db8d750876ce9c43b23ddfdbe618ec5dd12767ee</id>
<content type='text'>
The current definition results in an incorrect expansion of the term under zsh.
For instance "/^${1////\\/}/" under zsh with the argument "hi" results in:
    /^/\/h/\/i/

This results in an output similar to this when trying to complete `git grep
chartab` under zsh:

    :: git grep chartabawk: cmd. line:1: /^/\/c/\/h/\/a/\/r/\/t/\/a/\/b/ { print $1 }
    awk: cmd. line:1:    ^ backslash not last character on line
    awk: cmd. line:1: /^/\/c/\/h/\/a/\/r/\/t/\/a/\/b/ { print $1 }
    awk: cmd. line:1:    ^ syntax error

Leaving the prompt in a goofy state until the user hits a key.

Escaping the literal / in the parameter expansion (using "/^${1//\//\\/}/")
results in:
    /^chartab/

allowing the completion to work correctly.

This formulation also works under bash.

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>config,completion: add color.status.unmerged</title>
<updated>2015-03-10T22:27:59Z</updated>
<author>
<name>Michael J Gruber</name>
<email>git@drmicha.warpmail.net</email>
</author>
<published>2015-03-10T16:11:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0d6accc01d4073d685ece5ba9fd0a439539a5a02'/>
<id>urn:sha1:0d6accc01d4073d685ece5ba9fd0a439539a5a02</id>
<content type='text'>
Reported-by: "Mladen B." &lt;mladen074@gmail.com&gt;
Signed-off-by: Michael J Gruber &lt;git@drmicha.warpmail.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
