<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion/git-completion.bash, branch v2.20.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.20.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.20.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-11-13T13:37:28Z</updated>
<entry>
<title>Merge branch 'nd/complete-format-patch'</title>
<updated>2018-11-13T13:37:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-11-13T13:37:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=95182c65d844e799e80a8f8997e357cdf8a3c7a6'/>
<id>urn:sha1:95182c65d844e799e80a8f8997e357cdf8a3c7a6</id>
<content type='text'>
The support for format-patch (and send-email) by the command-line
completion script (in contrib/) has been simplified a bit.

* nd/complete-format-patch:
  completion: use __gitcomp_builtin for format-patch
</content>
</entry>
<entry>
<title>Merge branch 'nd/completion-negation'</title>
<updated>2018-11-06T06:50:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-11-06T06:50:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9ffcf754dacea247c15dd78a61f0eebb4493bc75'/>
<id>urn:sha1:9ffcf754dacea247c15dd78a61f0eebb4493bc75</id>
<content type='text'>
The command line completion machinery (in contrib/) has been
updated to allow the completion script to tweak the list of options
that are reported by the parse-options machinery correctly.

* nd/completion-negation:
  completion: fix __gitcomp_builtin no longer consider extra options
</content>
</entry>
<entry>
<title>completion: use __gitcomp_builtin for format-patch</title>
<updated>2018-11-06T04:22:30Z</updated>
<author>
<name>Duy Nguyen</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-11-03T06:03:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=13374987dd889858758afef458bd8a8cbf15bb4d'/>
<id>urn:sha1:13374987dd889858758afef458bd8a8cbf15bb4d</id>
<content type='text'>
This helps format-patch gain completion for a couple new options,
notably --range-diff.

Since send-email completion relies on $__git_format_patch_options
which is now reduced, we need to do something not to regress
send-email completion.

The workaround here is implement --git-completion-helper in
send-email.perl just as a bridge to "format-patch --git-completion-helper".
This is enough to use __gitcomp_builtin on send-email (to take
advantage of caching).

In the end, send-email.perl can probably reuse the same info it passes
to GetOptions() to generate full --git-completion-helper output so
that we don't need to keep track of its options in git-completion.bash
anymore. But that's something for another boring day.

Helped-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'dl/mergetool-gui-option'</title>
<updated>2018-10-30T06:43:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-10-30T06:43:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=87c15d1ca969e978fb8d04bc486a28025d71e6b2'/>
<id>urn:sha1:87c15d1ca969e978fb8d04bc486a28025d71e6b2</id>
<content type='text'>
"git mergetool" learned to take the "--[no-]gui" option, just like
"git difftool" does.

* dl/mergetool-gui-option:
  doc: document diff/merge.guitool config keys
  completion: support `git mergetool --[no-]gui`
  mergetool: accept -g/--[no-]gui as arguments
</content>
</entry>
<entry>
<title>Merge branch 'du/cherry-is-plumbing'</title>
<updated>2018-10-26T05:22:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-10-26T05:22:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eff5d693ad5ff28daf2244ce2618896e87cccb2b'/>
<id>urn:sha1:eff5d693ad5ff28daf2244ce2618896e87cccb2b</id>
<content type='text'>
Doc update to mark "git cherry" as a plumbing command.

* du/cherry-is-plumbing:
  doc: move git-cherry to plumbing
</content>
</entry>
<entry>
<title>completion: support `git mergetool --[no-]gui`</title>
<updated>2018-10-25T05:01:16Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2018-10-24T16:25:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=57ba181270e07ba66c55c9af466e95ab9f739680'/>
<id>urn:sha1:57ba181270e07ba66c55c9af466e95ab9f739680</id>
<content type='text'>
Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Anmol Mago &lt;anmolmago@gmail.com&gt;
Signed-off-by: Brian Ho &lt;briankyho@gmail.com&gt;
Signed-off-by: David Lu &lt;david.lu97@outlook.com&gt;
Signed-off-by: Ryan Wang &lt;shirui.wang@hotmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: fix __gitcomp_builtin no longer consider extra options</title>
<updated>2018-10-22T03:52:29Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-10-21T08:37:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=276b49ff3413434ec491db8fcb56485a71c6b6e7'/>
<id>urn:sha1:276b49ff3413434ec491db8fcb56485a71c6b6e7</id>
<content type='text'>
__gitcomp_builtin() has the main completion list provided by

    git xxx --git-completion-helper

but the caller can also add extra options that is not provided by
--git-completion-helper. The only call site that does this is "git
difftool" completion.

This support is broken by b221b5ab9b (completion: collapse extra
--no-.. options - 2018-06-06), which adds a special value "--" to mark
that the rest of the options can be hidden by default. The commit
forgets the fact that extra options are appended after
"$(git xxx --git-completion-helper)", i.e. after this "--", and will
be incorrectly hidden as well.

Prepend the extra options before "$(git xxx --git-completion-helper)"
to avoid this.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/complete-fetch-multiple-args'</title>
<updated>2018-10-19T04:34:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-10-19T04:34:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aef8e71f1512c2edb1b323969d3f215a23ff1c04'/>
<id>urn:sha1:aef8e71f1512c2edb1b323969d3f215a23ff1c04</id>
<content type='text'>
Teach bash completion that "git fetch --multiple" only takes remote
names as arguments and no refspecs.

* nd/complete-fetch-multiple-args:
  completion: support "git fetch --multiple"
</content>
</entry>
<entry>
<title>doc: move git-cherry to plumbing</title>
<updated>2018-10-11T23:26:49Z</updated>
<author>
<name>Daniels Umanovskis</name>
<email>daniels@umanovskis.se</email>
</author>
<published>2018-10-11T18:33:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=61018fe9e005a54e18184481927519d64035220a'/>
<id>urn:sha1:61018fe9e005a54e18184481927519d64035220a</id>
<content type='text'>
Also remove git-cherry from Bash completion because plumbing
commands do not belong there.

Signed-off-by: Daniels Umanovskis &lt;daniels@umanovskis.se&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-completion.bash: add completion for stash list</title>
<updated>2018-10-07T01:05:49Z</updated>
<author>
<name>Steven Fernandez</name>
<email>steve@lonetwin.net</email>
</author>
<published>2018-09-27T19:59:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=705f5f122cb3659db20e0a621ab1e9c09f1e0624'/>
<id>urn:sha1:705f5f122cb3659db20e0a621ab1e9c09f1e0624</id>
<content type='text'>
Since stash list accepts git-log options, add the following useful
options that make sense in the context of the `git stash list` command:

  --name-status --oneline --patch-with-stat

Signed-off-by: Steven Fernandez &lt;steve@lonetwin.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
