<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion, branch v2.16.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.16.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.16.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-12-28T22:08:45Z</updated>
<entry>
<title>Merge branch 'ra/prompt-eread-fix'</title>
<updated>2017-12-28T22:08:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-12-28T22:08:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5abbdbbd9bd32aaae0e11d078b0151f7a7e3d20d'/>
<id>urn:sha1:5abbdbbd9bd32aaae0e11d078b0151f7a7e3d20d</id>
<content type='text'>
Update the shell prompt script (in contrib/) to strip trailing CR
from strings read from various "state" files.

* ra/prompt-eread-fix:
  git-prompt: fix reading files with windows line endings
  git-prompt: make __git_eread intended use explicit
</content>
</entry>
<entry>
<title>git-prompt: fix reading files with windows line endings</title>
<updated>2017-12-06T18:08:13Z</updated>
<author>
<name>Robert Abel</name>
<email>rabel@robertabel.eu</email>
</author>
<published>2017-12-05T23:39:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=041fe8fc83770f95b09db4aa9d9b3783789eab08'/>
<id>urn:sha1:041fe8fc83770f95b09db4aa9d9b3783789eab08</id>
<content type='text'>
If any of the files read by __git_eread have \r\n line endings, read
will only strip \n, leaving \r. This results in an ugly prompt, where
instead of

    user@pc MINGW64 /path/to/repo (BARE:master)

the last parenthesis is printed over the beginning of the prompt like

    )ser@pc MINGW64 /path/to/repo (BARE:master

This patch fixes the issue by changing the internal field separator
variable IFS to $'\r\n' before using the read builtin command.

Note that ANSI-C Quoting/POSIX Quoting ($'...') is supported by bash
as well as zsh, which are the current targets of git-prompt, cf.
contrib/completion/git-prompt.sh.

Signed-off-by: Robert Abel &lt;rabel@robertabel.eu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-prompt: make __git_eread intended use explicit</title>
<updated>2017-12-06T18:08:12Z</updated>
<author>
<name>Robert Abel</name>
<email>rabel@robertabel.eu</email>
</author>
<published>2017-12-05T23:39:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5501f500b22116166c892d632382c9d497da822c'/>
<id>urn:sha1:5501f500b22116166c892d632382c9d497da822c</id>
<content type='text'>
__git_eread is used to read a single line of a given file (if it exists)
into a single variable stripping the EOL.
This patch removes the unused capability to split file contents into tokens
by passing multiple variable names. Add a comment and explicitly use $2
instead of misleading $@ as argument to the read builtin command.

Signed-off-by: Robert Abel &lt;rabel@robertabel.eu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ac/complete-pull-autostash'</title>
<updated>2017-12-06T17:23:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-12-06T17:23:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=00bcc35081f6fd247fa4024bd256c1ab4082f9bf'/>
<id>urn:sha1:00bcc35081f6fd247fa4024bd256c1ab4082f9bf</id>
<content type='text'>
The shell completion (in contrib/) learned that "git pull" can take
the "--autostash" option.

* ac/complete-pull-autostash:
  completion: add --autostash and --no-autostash to pull
</content>
</entry>
<entry>
<title>Merge branch 'tz/complete-branch-copy'</title>
<updated>2017-11-27T02:06:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-27T02:06:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=93bfe62ae3fa31429df25daf243f9778d9b929b9'/>
<id>urn:sha1:93bfe62ae3fa31429df25daf243f9778d9b929b9</id>
<content type='text'>
Command line completion (in contrib/) has been taught about the
"--copy" option of "git branch".

* tz/complete-branch-copy:
  completion: add '--copy' option to 'git branch'
</content>
</entry>
<entry>
<title>Merge branch 'rv/sendemail-tocmd-in-config-and-completion'</title>
<updated>2017-11-27T02:06:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-27T02:06:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f3f671b9283abc960d59c30c529aea94530cf2ec'/>
<id>urn:sha1:f3f671b9283abc960d59c30c529aea94530cf2ec</id>
<content type='text'>
Teach "sendemail.tocmd" to places that know about "sendemail.to",
like documentation and shell completion (in contrib/).

* rv/sendemail-tocmd-in-config-and-completion:
  completion: add git config sendemail.tocmd
  Documentation/config: add sendemail.tocmd to list preceding "See git-send-email(1)"
</content>
</entry>
<entry>
<title>Merge branch 'jc/ignore-cr-at-eol'</title>
<updated>2017-11-27T02:06:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-27T02:06:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=10f65c239a885336b745cc9d2e1654980ffef41e'/>
<id>urn:sha1:10f65c239a885336b745cc9d2e1654980ffef41e</id>
<content type='text'>
The "diff" family of commands learned to ignore differences in
carriage return at the end of line.

* jc/ignore-cr-at-eol:
  diff: --ignore-cr-at-eol
  xdiff: reassign xpparm_t.flags bits
</content>
</entry>
<entry>
<title>completion: add --autostash and --no-autostash to pull</title>
<updated>2017-11-22T07:31:43Z</updated>
<author>
<name>Albert Astals Cid</name>
<email>albert.astals.cid@kdab.com</email>
</author>
<published>2017-11-21T14:39:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=541c2a3a3db92a4348f3d9c6b234cedef2853c0b'/>
<id>urn:sha1:541c2a3a3db92a4348f3d9c6b234cedef2853c0b</id>
<content type='text'>
Ideally we should only autocomplete if pull has --rebase since
they only work with it but could not figure out how to do that
and the error message of doing git pull --autostash points out
that you need --rebase so i guess it's good enough

Signed-off-by: Albert Astals Cid &lt;albert.astals.cid@kdab.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tz/fsf-address-update' into maint</title>
<updated>2017-11-21T05:05:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-21T05:05:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b2a276830fa6266469dcc50107bdee02a9daa33b'/>
<id>urn:sha1:b2a276830fa6266469dcc50107bdee02a9daa33b</id>
<content type='text'>
Replace the mailing address of FSF to a URL, as FSF prefers.

* tz/fsf-address-update:
  Replace Free Software Foundation address in license notices
  Replace Free Software Foundation address in license notices
</content>
</entry>
<entry>
<title>completion: add '--copy' option to 'git branch'</title>
<updated>2017-11-17T01:32:19Z</updated>
<author>
<name>Todd Zullinger</name>
<email>tmz@pobox.com</email>
</author>
<published>2017-11-16T17:09:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41ca0f773e7c907280f4ce846b1def384f8c97e4'/>
<id>urn:sha1:41ca0f773e7c907280f4ce846b1def384f8c97e4</id>
<content type='text'>
In 52d59cc645 (branch: add a --copy (-c) option to go with --move (-m),
2017-06-18), `git branch` learned a `--copy` option.  Include it when
providing command completions.

Signed-off-by: Todd Zullinger &lt;tmz@pobox.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
