<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion/git-completion.bash, branch v2.29.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.29.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.29.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2020-09-26T22:30:05Z</updated>
<entry>
<title>completion: complete refs after 'git restore -s'</title>
<updated>2020-09-26T22:30:05Z</updated>
<author>
<name>Ákos Uzonyi</name>
<email>uzonyi.akos@gmail.com</email>
</author>
<published>2020-09-25T21:11:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0bc18daa2f5d05b1b77293aef391008e07076d02'/>
<id>urn:sha1:0bc18daa2f5d05b1b77293aef391008e07076d02</id>
<content type='text'>
Currently only the long version (--source=) supports completion.

Add completion support to the short (-s) option too.

Signed-off-by: Ákos Uzonyi &lt;uzonyi.akos@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: use "prev" variable instead of introducing "prevword"</title>
<updated>2020-09-26T22:30:03Z</updated>
<author>
<name>Ákos Uzonyi</name>
<email>uzonyi.akos@gmail.com</email>
</author>
<published>2020-09-25T21:11:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c09d1280f7787020e28844e8fd615d973d2a811e'/>
<id>urn:sha1:c09d1280f7787020e28844e8fd615d973d2a811e</id>
<content type='text'>
In both _git_checkout and _git_switch a new "prevword" variable were
introduced, however the "prev" variable already contains the last word.

The "prevword" variable is replaced with "prev", and the case is moved
to the beginning of the function, like it's done in many other places
(e.g. _git_commit). Also the indentaion of the case is fixed.

Signed-off-by: Ákos Uzonyi &lt;uzonyi.akos@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>contrib/completion: complete options that take refs for format-patch</title>
<updated>2020-09-17T22:23:22Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2020-09-17T08:04:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=93ab00bd857c31a3aa5318120d162825303048c7'/>
<id>urn:sha1:93ab00bd857c31a3aa5318120d162825303048c7</id>
<content type='text'>
The completion for format-patch currently suggests --base=, --interdiff=
and --range-diff= as options. However, with these `=` forms of the
options, there is no space and we'd enter the `--*` case which means we
don't call the __git_complete_revlist() at the end.

Teach _git_format_patch() to complete refs in the case of --base=,
--interdiff= and --range-diff=.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: add GIT_COMPLETION_SHOW_ALL env var</title>
<updated>2020-08-20T00:46:17Z</updated>
<author>
<name>Ryan Zoeller</name>
<email>rtzoeller@rtzoeller.com</email>
</author>
<published>2020-08-19T23:06:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c099f579b9876447cea36ebd1040507fedd3292a'/>
<id>urn:sha1:c099f579b9876447cea36ebd1040507fedd3292a</id>
<content type='text'>
When set to 1, GIT_COMPLETION_SHOW_ALL causes --git-completion-helper-all
to be passed instead of --git-completion-helper.

Signed-off-by: Ryan Zoeller &lt;rtzoeller@rtzoeller.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'pd/mergetool-nvimdiff'</title>
<updated>2020-08-18T00:02:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-08-18T00:02:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=873fa13e3fd7c2644578577f4274ce92ed891a42'/>
<id>urn:sha1:873fa13e3fd7c2644578577f4274ce92ed891a42</id>
<content type='text'>
The existing backends for "git mergetool" based on variants of vim
have been refactored and then support for "nvim" has been added.

* pd/mergetool-nvimdiff:
  mergetools: add support for nvimdiff (neovim) family
  mergetool--lib: improve support for vimdiff-style tool variants
</content>
</entry>
<entry>
<title>mergetools: add support for nvimdiff (neovim) family</title>
<updated>2020-07-29T21:44:49Z</updated>
<author>
<name>pudinha</name>
<email>rogi@skylittlesystem.org</email>
</author>
<published>2020-07-29T21:31:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=11868978c7c80d3c29071b29e7964e3d62523819'/>
<id>urn:sha1:11868978c7c80d3c29071b29e7964e3d62523819</id>
<content type='text'>
Signed-off-by: pudinha &lt;rogi@skylittlesystem.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: add show --color-moved[-ws]</title>
<updated>2020-07-15T20:51:09Z</updated>
<author>
<name>Michal Privoznik</name>
<email>mprivozn@redhat.com</email>
</author>
<published>2020-07-14T07:44:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=688b87c81b3a16d4b22594ef48052ee5f29a35b8'/>
<id>urn:sha1:688b87c81b3a16d4b22594ef48052ee5f29a35b8</id>
<content type='text'>
The completion for diff command was added in fd0bc175576 but
missed the show command which also supports --color-moved[-ws].

This suffers from the very same problem [1] as the referenced
commit: no comma-separated list completion for --color-moved-ws.

[1]: https://github.com/scop/bash-completion/issues/240

Signed-off-by: Michal Privoznik &lt;mprivozn@redhat.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: nounset mode fixes</title>
<updated>2020-07-01T21:55:30Z</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2020-06-29T18:59:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c2dbcd206d2d654c1d934501a7f03a5a0f452b92'/>
<id>urn:sha1:c2dbcd206d2d654c1d934501a7f03a5a0f452b92</id>
<content type='text'>
Accessing unset variables results an errors when the shell is in
nounset/-u mode. This fixes the cases I've come across while using git
completion in a shell running in that mode for a while. It's hard to
tell if this is the complete set, but at least it improves things.

Signed-off-by: Ville Skyttä &lt;ville.skytta@iki.fi&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/complete-git-switch'</title>
<updated>2020-06-25T19:27:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-06-25T19:27:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=320421840e1e311bceacc6c98ee86c698578bf9c'/>
<id>urn:sha1:320421840e1e311bceacc6c98ee86c698578bf9c</id>
<content type='text'>
The command line completion (in contrib/) learned to complete
options that the "git switch" command takes.

* jk/complete-git-switch:
  completion: improve handling of --orphan option of switch/checkout
  completion: improve handling of -c/-C and -b/-B in switch/checkout
  completion: improve handling of --track in switch/checkout
  completion: improve handling of --detach in checkout
  completion: improve completion for git switch with no options
  completion: improve handling of DWIM mode for switch/checkout
  completion: perform DWIM logic directly in __git_complete_refs
  completion: extract function __git_dwim_remote_heads
  completion: replace overloaded track term for __git_complete_refs
  completion: add tests showing subpar switch/checkout --orphan logic
  completion: add tests showing subpar -c/C argument completion
  completion: add tests showing subpar -c/-C startpoint completion
  completion: add tests showing subpar switch/checkout --track logic
  completion: add tests showing subar checkout --detach logic
  completion: add tests showing subpar DWIM logic for switch/checkout
  completion: add test showing subpar git switch completion
</content>
</entry>
<entry>
<title>Merge branch 'vs/complete-stash-show-p-fix'</title>
<updated>2020-06-09T01:06:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-06-09T01:06:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a8ecd0190d743f19d20917197f95317955354941'/>
<id>urn:sha1:a8ecd0190d743f19d20917197f95317955354941</id>
<content type='text'>
The command line completion script (in contrib/) tried to complete
"git stash -p" as if it were "git stash push -p", but it was too
aggressive and also affected "git stash show -p", which has been
corrected.

* vs/complete-stash-show-p-fix:
  completion: don't override given stash subcommand with -p
</content>
</entry>
</feed>
