<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion, branch v2.0.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.0.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.0.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-05-27T19:27:50Z</updated>
<entry>
<title>completion: add missing options for git-merge</title>
<updated>2014-05-27T19:27:50Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-05-22T13:58:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8fee8726470bd63db6c396ea6208ea487eaa8fab'/>
<id>urn:sha1:8fee8726470bd63db6c396ea6208ea487eaa8fab</id>
<content type='text'>
The options added to __git_merge_options are those that git-pull passes
to git-merge, since that variable is used by both commands.

Those added directly in _git_merge() are specific to git-merge and
are not passed thru from git-pull.

Reported-by: Haralan Dobrev &lt;hkdobrev@gmail.com&gt;
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: add a note that merge options are shared</title>
<updated>2014-05-27T19:27:36Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-05-22T13:58:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d2b06f02b9c69351a55a2cad0cfab33ecb6ee6f'/>
<id>urn:sha1:6d2b06f02b9c69351a55a2cad0cfab33ecb6ee6f</id>
<content type='text'>
This should avoid future confusion after a subsequent patch has added
some options to __git_merge_options and some directly in _git_merge().

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 'rh/prompt-pcmode-avoid-eval-on-refname'</title>
<updated>2014-05-19T23:10:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-05-19T23:10:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=df43b41afcc9bf5e4b8751dc9a53b068b33f52a8'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>git-prompt.sh: don't assume the shell expands the value of PS1</title>
<updated>2014-05-19T23:09:53Z</updated>
<author>
<name>Richard Hansen</name>
<email>rhansen@bbn.com</email>
</author>
<published>2014-05-19T22:55:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1e4119c81b3e203e1729e03be6e4a53eb9207f5c'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>Merge branch 'fc/prompt-zsh-read-from-file'</title>
<updated>2014-05-13T18:53:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-05-13T18:53:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6308767f0bb58116cb405e1f4f77f5dfc1589920'/>
<id>urn:sha1:6308767f0bb58116cb405e1f4f77f5dfc1589920</id>
<content type='text'>
* fc/prompt-zsh-read-from-file:
  contrib: completion: fix 'eread()' namespace
</content>
</entry>
<entry>
<title>contrib: completion: fix 'eread()' namespace</title>
<updated>2014-05-13T18:52:51Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2014-05-13T13:21:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=66ab301c165b5ba6395b7bcc7cf35a7592f9f46f'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>Merge branch 'rh/prompt-pcmode-avoid-eval-on-refname'</title>
<updated>2014-05-02T20:10:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-05-02T20:10:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f7003da0f498ee7621fad4ebd15778439e77fce2'/>
<id>urn:sha1:f7003da0f498ee7621fad4ebd15778439e77fce2</id>
<content type='text'>
* rh/prompt-pcmode-avoid-eval-on-refname:
  git-prompt.sh: don't put unsanitized branch names in $PS1
</content>
</entry>
<entry>
<title>git-prompt.sh: don't put unsanitized branch names in $PS1</title>
<updated>2014-04-22T19:37:53Z</updated>
<author>
<name>Richard Hansen</name>
<email>rhansen@bbn.com</email>
</author>
<published>2014-04-21T23:53:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8976500cbbb13270398d3b3e07a17b8cc7bff43f'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>Merge branch 'fc/complete-aliased-push'</title>
<updated>2014-04-18T18:17:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-04-18T18:17:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=961c1b191acccb13bab5895f546034bb2f47eddb'/>
<id>urn:sha1:961c1b191acccb13bab5895f546034bb2f47eddb</id>
<content type='text'>
* fc/complete-aliased-push:
  completion: fix completing args of aliased "push", "fetch", etc.
</content>
</entry>
<entry>
<title>prompt: fix missing file errors in zsh</title>
<updated>2014-04-14T20:27:23Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2014-04-11T23:32:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=59d3924fbb300ebfe05f9079bcfe29d0a3f30661'/>
<id>urn:sha1: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>
</entry>
</feed>
