<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2013-04-26T18:12:30Z</updated>
<entry>
<title>Merge branch 'fc/untracked-zsh-prompt' into maint</title>
<updated>2013-04-26T18:12:30Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-04-26T18:12:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1a475c4a2f4fead39b4e80dcdfbcf0627dfb5327'/>
<id>urn:sha1:1a475c4a2f4fead39b4e80dcdfbcf0627dfb5327</id>
<content type='text'>
* fc/untracked-zsh-prompt:
  prompt: fix untracked files for zsh
</content>
</entry>
<entry>
<title>completion: remove duplicate block for "git commit -c"</title>
<updated>2013-04-24T23:05:07Z</updated>
<author>
<name>Mårten Kongstad</name>
<email>marten.kongstad@gmail.com</email>
</author>
<published>2013-04-24T20:49:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7612e61e33981f48f212f6aefe3550ac724d6208'/>
<id>urn:sha1:7612e61e33981f48f212f6aefe3550ac724d6208</id>
<content type='text'>
Remove one of two consecutive, identical blocks for "git commit -c".

This was caused by a mechanical mismerge at d931e2fb252e (Merge
branch 'mp/complete-paths', 2013-02-08).  The side branch wanted to
add this block at fea16b47 but the same fix was done independently
at 685397585 already.

Signed-off-by: Mårten Kongstad &lt;marten.kongstad@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>prompt: fix untracked files for zsh</title>
<updated>2013-04-22T01:01:37Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2013-04-21T22:00:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=24b6132e571bf2e27536d42022f8c0733034d880'/>
<id>urn:sha1:24b6132e571bf2e27536d42022f8c0733034d880</id>
<content type='text'>
We signal presense of untracked files by adding a per-cent sign '%'
to the prompt.  But because '%' is used as an escape character to
introduce prompt customization in zsh (just like bash prompt uses
'\' to escape '\u', '\h', etc.), we need to say '%%' to get a
literal per-cent.

Helped-by: Andreas Schwab &lt;schwab@linux-m68k.org&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>bash: teach __git_ps1 about REVERT_HEAD</title>
<updated>2013-04-01T02:07:26Z</updated>
<author>
<name>Robin Rosenberg</name>
<email>robin.rosenberg@dewire.com</email>
</author>
<published>2013-03-31T00:30:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3ee4452837a1f99088517b25938d5c85aac4a583'/>
<id>urn:sha1:3ee4452837a1f99088517b25938d5c85aac4a583</id>
<content type='text'>
Signed-off-by: Robin Rosenberg &lt;robin.rosenberg@dewire.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mp/complete-paths'</title>
<updated>2013-03-11T17:32:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-03-11T17:32:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1eba9f055f59ea7a04b4bb45facc1c64abc2132'/>
<id>urn:sha1:f1eba9f055f59ea7a04b4bb45facc1c64abc2132</id>
<content type='text'>
* mp/complete-paths:
  git-completion.bash: zsh does not implement function redirection correctly
</content>
</entry>
<entry>
<title>git-completion.bash: zsh does not implement function redirection correctly</title>
<updated>2013-03-11T17:22:56Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2013-03-11T12:21:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=35ba83ccf6f83d1278b3bff56db75be9c59fee69'/>
<id>urn:sha1:35ba83ccf6f83d1278b3bff56db75be9c59fee69</id>
<content type='text'>
A recent change added functions whose entire standard error stream
is redirected to /dev/null using a construct that is valid POSIX.1
but is not widely used:

	funcname () {
		cd "$1" &amp;&amp; run some command "$2"
	} 2&gt;/dev/null

Even though this file is "git-completion.bash", zsh completion
support dot-sources it (instead of asking bash to grok it like tcsh
completion does), and zsh does not implement this redirection
correctly.

With zsh, trying to complete an inexistant directory gave this:

  git add no-such-dir/__git_ls_files_helper:cd:2: no such file or directory: no-such-dir/

Also these functions use "cd" to first go somewhere else before
running a command, but the location the caller wants them to go that
is given as an argument to them should not be affected by CDPATH
variable the users may have set for their interactive session.

To fix both of these, wrap the body of the function in a subshell,
unset CDPATH at the beginning of the subshell, and redirect the
standard error stream of the subshell to /dev/null.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mp/complete-paths'</title>
<updated>2013-03-07T21:11:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-03-07T21:11:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c5443b2a1ee34f2a9adc1bfa0b2d232567e16fa7'/>
<id>urn:sha1:c5443b2a1ee34f2a9adc1bfa0b2d232567e16fa7</id>
<content type='text'>
* mp/complete-paths:
  git-completion.zsh: define __gitcomp_file compatibility function
</content>
</entry>
<entry>
<title>git-completion.zsh: define __gitcomp_file compatibility function</title>
<updated>2013-03-05T16:54:03Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2013-03-05T08:43:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=926eb7ba4c52fbfee9fba86c16bb6c374857190e'/>
<id>urn:sha1:926eb7ba4c52fbfee9fba86c16bb6c374857190e</id>
<content type='text'>
Commit fea16b47b60 (Fri Jan 11 19:48:43 2013, Manlio Perillo,
git-completion.bash: add support for path completion), introduced a new
__gitcomp_file function that uses the bash builtin "compgen". The
function was redefined for ZSH in the deprecated section of
git-completion.bash, but not in the new git-completion.zsh script.

As a result, users of git-completion.zsh trying to complete "git add
fo&lt;tab&gt;" get an error:

git add fo__gitcomp_file:8: command not found: compgen

This patch adds the redefinition and removes the error.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>shell-prompt: clean up nested if-then</title>
<updated>2013-02-18T23:33:31Z</updated>
<author>
<name>Martin Erik Werner</name>
<email>martinerikwerner@gmail.com</email>
</author>
<published>2013-02-18T22:59:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=31e6a4e6131ae2b7afd6bd0ba7919bf246e6c474'/>
<id>urn:sha1:31e6a4e6131ae2b7afd6bd0ba7919bf246e6c474</id>
<content type='text'>
Minor clean up of if-then nesting in checks for environment variables
and config options. No functional changes.

Signed-off-by: Martin Erik Werner &lt;martinerikwerner@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mp/diff-algo-config'</title>
<updated>2013-02-17T23:25:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-02-17T23:25:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=abea4dc76a675d4ac0f27a2367256dc31981d1ca'/>
<id>urn:sha1:abea4dc76a675d4ac0f27a2367256dc31981d1ca</id>
<content type='text'>
Add diff.algorithm configuration so that the user does not type
"diff --histogram".

* mp/diff-algo-config:
  diff: Introduce --diff-algorithm command line option
  config: Introduce diff.algorithm variable
  git-completion.bash: Autocomplete --minimal and --histogram for git-diff
</content>
</entry>
</feed>
