<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion, 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>Merge branch 'mp/complete-show-color-moved'</title>
<updated>2020-08-04T20:53:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-08-04T20:53:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a1315123e22b6996d68c090fa74dbba483bb1d52'/>
<id>urn:sha1:a1315123e22b6996d68c090fa74dbba483bb1d52</id>
<content type='text'>
Command line completion (in contrib/) update.

* mp/complete-show-color-moved:
  completion: add show --color-moved[-ws]
</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>Merge branch 'en/sparse-status' into master</title>
<updated>2020-07-21T21:19:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-07-21T21:19:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cfa7ae8b6e2f375d3609e526754539ef0791d33b'/>
<id>urn:sha1:cfa7ae8b6e2f375d3609e526754539ef0791d33b</id>
<content type='text'>
Fix to a "git prompt" regression during this development cycle.

* en/sparse-status:
  git-prompt: change == to = for zsh's sake
</content>
</entry>
<entry>
<title>git-prompt: change == to = for zsh's sake</title>
<updated>2020-07-21T00:37:20Z</updated>
<author>
<name>David J. Malan</name>
<email>malan@harvard.edu</email>
</author>
<published>2020-07-21T00:15:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e8882a87d9c479fd9d6e71a5840e949579304ab9'/>
<id>urn:sha1:e8882a87d9c479fd9d6e71a5840e949579304ab9</id>
<content type='text'>
When using git-prompt.sh with zsh, __git_ps1 currently errs
when inside a repo with:

__git_ps1:96: = not found

Avoid using non-portable "==" that is only understood by bash
and not zsh. Change to "=" so that the prompt script becomes
usable with zsh again.

Signed-off-by: David J. Malan &lt;malan@harvard.edu&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>
</feed>
