<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion/git-completion.bash, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2013-04-24T23:05:07Z</updated>
<entry>
<title>completion: remove duplicate block for "git commit -c"</title>
<updated>2013-04-24T23:05:07Z</updated>
<author>
<name>Mårten Kongstad</name>
<email>marten.kongstad@gmail.com</email>
</author>
<published>2013-04-24T20:49:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7612e61e33981f48f212f6aefe3550ac724d6208'/>
<id>urn:sha1:7612e61e33981f48f212f6aefe3550ac724d6208</id>
<content type='text'>
Remove one of two consecutive, identical blocks for "git commit -c".

This was caused by a mechanical mismerge at d931e2fb252e (Merge
branch 'mp/complete-paths', 2013-02-08).  The side branch wanted to
add this block at fea16b47 but the same fix was done independently
at 685397585 already.

Signed-off-by: Mårten Kongstad &lt;marten.kongstad@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mp/complete-paths'</title>
<updated>2013-03-11T17:32:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-03-11T17:32:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1eba9f055f59ea7a04b4bb45facc1c64abc2132'/>
<id>urn:sha1:f1eba9f055f59ea7a04b4bb45facc1c64abc2132</id>
<content type='text'>
* mp/complete-paths:
  git-completion.bash: zsh does not implement function redirection correctly
</content>
</entry>
<entry>
<title>git-completion.bash: zsh does not implement function redirection correctly</title>
<updated>2013-03-11T17:22:56Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2013-03-11T12:21:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=35ba83ccf6f83d1278b3bff56db75be9c59fee69'/>
<id>urn:sha1:35ba83ccf6f83d1278b3bff56db75be9c59fee69</id>
<content type='text'>
A recent change added functions whose entire standard error stream
is redirected to /dev/null using a construct that is valid POSIX.1
but is not widely used:

	funcname () {
		cd "$1" &amp;&amp; run some command "$2"
	} 2&gt;/dev/null

Even though this file is "git-completion.bash", zsh completion
support dot-sources it (instead of asking bash to grok it like tcsh
completion does), and zsh does not implement this redirection
correctly.

With zsh, trying to complete an inexistant directory gave this:

  git add no-such-dir/__git_ls_files_helper:cd:2: no such file or directory: no-such-dir/

Also these functions use "cd" to first go somewhere else before
running a command, but the location the caller wants them to go that
is given as an argument to them should not be affected by CDPATH
variable the users may have set for their interactive session.

To fix both of these, wrap the body of the function in a subshell,
unset CDPATH at the beginning of the subshell, and redirect the
standard error stream of the subshell to /dev/null.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mp/diff-algo-config'</title>
<updated>2013-02-17T23:25:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-02-17T23:25:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=abea4dc76a675d4ac0f27a2367256dc31981d1ca'/>
<id>urn:sha1:abea4dc76a675d4ac0f27a2367256dc31981d1ca</id>
<content type='text'>
Add diff.algorithm configuration so that the user does not type
"diff --histogram".

* mp/diff-algo-config:
  diff: Introduce --diff-algorithm command line option
  config: Introduce diff.algorithm variable
  git-completion.bash: Autocomplete --minimal and --histogram for git-diff
</content>
</entry>
<entry>
<title>completion: support 'git config --local'</title>
<updated>2013-02-12T18:06:25Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2013-02-12T12:20:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=66c0786ca59ec2f281fe9c78521b79f8bccfc954'/>
<id>urn:sha1:66c0786ca59ec2f281fe9c78521b79f8bccfc954</id>
<content type='text'>
This needs to be done in two places: __git_config_get_set_variables to
allow clever completion of "git config --local --get foo&lt;tab&gt;", and
_git_config to allow "git config --loc&lt;tab&gt;" to complete to --local.

While we're there, change the order of options in the code to match
git-config.txt.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mp/complete-paths'</title>
<updated>2013-02-08T23:28:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-02-08T23:28:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d931e2fb252ed2dc4ecdbc24683000da1ec8e989'/>
<id>urn:sha1:d931e2fb252ed2dc4ecdbc24683000da1ec8e989</id>
<content type='text'>
The completion script used to let the default completer to suggest
pathnames, which gave too many irrelevant choices (e.g. "git add"
would not want to add an unmodified path).  Teach it to use a more
git-aware logic to enumerate only relevant ones.

* mp/complete-paths:
  git-completion.bash: add support for path completion
</content>
</entry>
<entry>
<title>Merge branch 'jc/do-not-let-random-file-interfere-with-completion-tests'</title>
<updated>2013-02-01T20:39:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-02-01T20:39:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=51a1d232a7c1bc6bbdb4ac47ab2e91ad3873b25b'/>
<id>urn:sha1:51a1d232a7c1bc6bbdb4ac47ab2e91ad3873b25b</id>
<content type='text'>
Scripts to test bash completion was inherently flaky as it was
affected by whatever random things the user may have on $PATH.

* jc/do-not-let-random-file-interfere-with-completion-tests:
  t9902: protect test from stray build artifacts
</content>
</entry>
<entry>
<title>Merge branch 'bc/fix-array-syntax-for-3.0-in-completion-bash'</title>
<updated>2013-01-28T18:59:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-28T18:59:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=38f7636410a41769af36a5abfdf0f02f3542c6b1'/>
<id>urn:sha1:38f7636410a41769af36a5abfdf0f02f3542c6b1</id>
<content type='text'>
Fix use of an array notation that older versions of bash do not
understand.

* bc/fix-array-syntax-for-3.0-in-completion-bash:
  git-completion.bash: replace zsh notation that breaks bash 3.X
</content>
</entry>
<entry>
<title>t9902: protect test from stray build artifacts</title>
<updated>2013-01-24T23:08:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-24T23:08:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5047822347f8d7ad453ad0ea5cbff542569fb7a6'/>
<id>urn:sha1:5047822347f8d7ad453ad0ea5cbff542569fb7a6</id>
<content type='text'>
When you have random build artifacts in your build directory, left
behind by running "make" while on another branch, the "git help -a"
command run by __git_list_all_commands in the completion script that
is being tested does not have a way to know that they are not part
of the subcommands this build will ship.  Such extra subcommands may
come from the user's $PATH.  They will interfere with the tests that
expect a certain prefix to uniquely expand to a known completion.

Instrument the completion script and give it a way for us to tell
what (subset of) subcommands we are going to ship.

Also add a test to "git --help &lt;prefix&gt;&lt;TAB&gt;" expansion.  It needs
to show not just commands but some selected documentation pages.

Based on an idea by Jeff King.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'as/check-ignore'</title>
<updated>2013-01-24T05:19:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-24T05:19:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a39b15b4f6a3f08b67b17d968935d177821e680f'/>
<id>urn:sha1:a39b15b4f6a3f08b67b17d968935d177821e680f</id>
<content type='text'>
Add a new command "git check-ignore" for debugging .gitignore
files.

The variable names may want to get cleaned up but that can be done
in-tree.

* as/check-ignore:
  clean.c, ls-files.c: respect encapsulation of exclude_list_groups
  t0008: avoid brace expansion
  add git-check-ignore sub-command
  setup.c: document get_pathspec()
  add.c: extract new die_if_path_beyond_symlink() for reuse
  add.c: extract check_path_for_gitlink() from treat_gitlinks() for reuse
  pathspec.c: rename newly public functions for clarity
  add.c: move pathspec matchers into new pathspec.c for reuse
  add.c: remove unused argument from validate_pathspec()
  dir.c: improve docs for match_pathspec() and match_pathspec_depth()
  dir.c: provide clear_directory() for reclaiming dir_struct memory
  dir.c: keep track of where patterns came from
  dir.c: use a single struct exclude_list per source of excludes

Conflicts:
	builtin/ls-files.c
	dir.c
</content>
</entry>
</feed>
