<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/git.git/contrib/completion, branch ss/userdiff-update-csharp-java</title>
<subtitle>github.com: git/git.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/git.git/'/>
<entry>
<title>Merge branch 'rh/prompt-pcmode-avoid-eval-on-refname'</title>
<updated>2014-05-19T23:10:10+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-05-19T23:10:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/git.git/commit/?id=df43b41afcc9bf5e4b8751dc9a53b068b33f52a8'/>
<id>df43b41afcc9bf5e4b8751dc9a53b068b33f52a8</id>
<content type='text'>
* rh/prompt-pcmode-avoid-eval-on-refname:
  git-prompt.sh: don't assume the shell expands the value of PS1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* rh/prompt-pcmode-avoid-eval-on-refname:
  git-prompt.sh: don't assume the shell expands the value of PS1
</pre>
</div>
</content>
</entry>
<entry>
<title>git-prompt.sh: don't assume the shell expands the value of PS1</title>
<updated>2014-05-19T23:09:53+00:00</updated>
<author>
<name>Richard Hansen</name>
<email>rhansen@bbn.com</email>
</author>
<published>2014-05-19T22:55:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/git.git/commit/?id=1e4119c81b3e203e1729e03be6e4a53eb9207f5c'/>
<id>1e4119c81b3e203e1729e03be6e4a53eb9207f5c</id>
<content type='text'>
Not all shells subject the prompt string to parameter expansion.  Test
whether the shell will expand the value of PS1, and use the result to
control whether raw ref names are included directly in PS1.

This fixes a regression introduced in commit 8976500 ("git-prompt.sh:
don't put unsanitized branch names in $PS1"):  zsh does not expand PS1
by default, but that commit assumed it did.  The bug resulted in
prompts containing the literal string '${__git_ps1_branch_name}'
instead of the actual branch name.

Reported-by: Caleb Thompson &lt;caleb@calebthompson.io&gt;
Signed-off-by: Richard Hansen &lt;rhansen@bbn.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Not all shells subject the prompt string to parameter expansion.  Test
whether the shell will expand the value of PS1, and use the result to
control whether raw ref names are included directly in PS1.

This fixes a regression introduced in commit 8976500 ("git-prompt.sh:
don't put unsanitized branch names in $PS1"):  zsh does not expand PS1
by default, but that commit assumed it did.  The bug resulted in
prompts containing the literal string '${__git_ps1_branch_name}'
instead of the actual branch name.

Reported-by: Caleb Thompson &lt;caleb@calebthompson.io&gt;
Signed-off-by: Richard Hansen &lt;rhansen@bbn.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'fc/prompt-zsh-read-from-file'</title>
<updated>2014-05-13T18:53:14+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-05-13T18:53:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/git.git/commit/?id=6308767f0bb58116cb405e1f4f77f5dfc1589920'/>
<id>6308767f0bb58116cb405e1f4f77f5dfc1589920</id>
<content type='text'>
* fc/prompt-zsh-read-from-file:
  contrib: completion: fix 'eread()' namespace
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* fc/prompt-zsh-read-from-file:
  contrib: completion: fix 'eread()' namespace
</pre>
</div>
</content>
</entry>
<entry>
<title>contrib: completion: fix 'eread()' namespace</title>
<updated>2014-05-13T18:52:51+00:00</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2014-05-13T13:21:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/git.git/commit/?id=66ab301c165b5ba6395b7bcc7cf35a7592f9f46f'/>
<id>66ab301c165b5ba6395b7bcc7cf35a7592f9f46f</id>
<content type='text'>
Otherwise it might collide with a function of the same name in the
user's environment.

Suggested-by: SZEDER Gábor &lt;szeder@ira.uka.de&gt;
Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise it might collide with a function of the same name in the
user's environment.

Suggested-by: SZEDER Gábor &lt;szeder@ira.uka.de&gt;
Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'rh/prompt-pcmode-avoid-eval-on-refname'</title>
<updated>2014-05-02T20:10:53+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-05-02T20:10:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/git.git/commit/?id=f7003da0f498ee7621fad4ebd15778439e77fce2'/>
<id>f7003da0f498ee7621fad4ebd15778439e77fce2</id>
<content type='text'>
* rh/prompt-pcmode-avoid-eval-on-refname:
  git-prompt.sh: don't put unsanitized branch names in $PS1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* rh/prompt-pcmode-avoid-eval-on-refname:
  git-prompt.sh: don't put unsanitized branch names in $PS1
</pre>
</div>
</content>
</entry>
<entry>
<title>git-prompt.sh: don't put unsanitized branch names in $PS1</title>
<updated>2014-04-22T19:37:53+00:00</updated>
<author>
<name>Richard Hansen</name>
<email>rhansen@bbn.com</email>
</author>
<published>2014-04-21T23:53:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/git.git/commit/?id=8976500cbbb13270398d3b3e07a17b8cc7bff43f'/>
<id>8976500cbbb13270398d3b3e07a17b8cc7bff43f</id>
<content type='text'>
Both bash and zsh subject the value of PS1 to parameter expansion,
command substitution, and arithmetic expansion.  Rather than include
the raw, unescaped branch name in PS1 when running in two- or
three-argument mode, construct PS1 to reference a variable that holds
the branch name.  Because the shells do not recursively expand, this
avoids arbitrary code execution by specially-crafted branch names such
as '$(IFS=_;cmd=sudo_rm_-rf_/;$cmd)'.

Signed-off-by: Richard Hansen &lt;rhansen@bbn.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both bash and zsh subject the value of PS1 to parameter expansion,
command substitution, and arithmetic expansion.  Rather than include
the raw, unescaped branch name in PS1 when running in two- or
three-argument mode, construct PS1 to reference a variable that holds
the branch name.  Because the shells do not recursively expand, this
avoids arbitrary code execution by specially-crafted branch names such
as '$(IFS=_;cmd=sudo_rm_-rf_/;$cmd)'.

Signed-off-by: Richard Hansen &lt;rhansen@bbn.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'fc/complete-aliased-push'</title>
<updated>2014-04-18T18:17:36+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-04-18T18:17:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/git.git/commit/?id=961c1b191acccb13bab5895f546034bb2f47eddb'/>
<id>961c1b191acccb13bab5895f546034bb2f47eddb</id>
<content type='text'>
* fc/complete-aliased-push:
  completion: fix completing args of aliased "push", "fetch", etc.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* fc/complete-aliased-push:
  completion: fix completing args of aliased "push", "fetch", etc.
</pre>
</div>
</content>
</entry>
<entry>
<title>prompt: fix missing file errors in zsh</title>
<updated>2014-04-14T20:27:23+00:00</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2014-04-11T23:32:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/git.git/commit/?id=59d3924fbb300ebfe05f9079bcfe29d0a3f30661'/>
<id>59d3924fbb300ebfe05f9079bcfe29d0a3f30661</id>
<content type='text'>
zsh seems to have a bug while redirecting the stderr of the 'read'
command:

    % read foo 2&gt;/dev/null &lt;foo
    zsh: no such file or directory: foo

Which causes errors to be displayed when certain files are missing.
Let's add a convenience function to manually check if the file is
readable before calling "read".

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
zsh seems to have a bug while redirecting the stderr of the 'read'
command:

    % read foo 2&gt;/dev/null &lt;foo
    zsh: no such file or directory: foo

Which causes errors to be displayed when certain files are missing.
Let's add a convenience function to manually check if the file is
readable before calling "read".

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>completion: fix completing args of aliased "push", "fetch", etc.</title>
<updated>2014-04-09T21:22:18+00:00</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2014-04-09T18:50:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/git.git/commit/?id=880111c11befaaf070e8ea1021bf11b4fb58c461'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'ss/completion-rec-sub-fetch-push'</title>
<updated>2014-03-14T21:24:15+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-03-14T21:24:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/git.git/commit/?id=baf9e83c2105527a75c2838d63e290ec87712ca6'/>
<id>baf9e83c2105527a75c2838d63e290ec87712ca6</id>
<content type='text'>
* ss/completion-rec-sub-fetch-push:
  completion: teach --recurse-submodules to fetch, pull and push
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* ss/completion-rec-sub-fetch-push:
  completion: teach --recurse-submodules to fetch, pull and push
</pre>
</div>
</content>
</entry>
</feed>
