git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 9/9] update 'git apply' bash-completion according to its man page

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 8, 2009, 19:50 UTC
Message-ID
<7vab2adr0s.fsf@alter.siamese.dyndns.org>
In-Reply-To
<9f50533b0908080157r6e58a6a4rf42ff684d095c002@mail.gmail.com>
Emmanuel Trillaud <etrillaud@gmail.com> writes:
Show 24 quoted lines
> ---
>  contrib/completion/git-completion.bash |   10 ++++++++--
>  1 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/contrib/completion/git-completion.bash
> b/contrib/completion/git-completion.bash
> index 8ba1249..c08422c 100755
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -694,9 +694,15 @@ _git_apply ()
>  	--*)
>  		__gitcomp "
>  			--stat --numstat --summary --check --index
> -			--cached --index-info --reverse --reject --unidiff-zero
> -			--apply --no-add --exclude=
> +			--cached
> +			--build-fake-ancestor=
> +			--index-info --reverse --reject --unidiff-zero
> +			--apply --no-add
> +			--exclude=
> +			--include=
>  			--whitespace= --inaccurate-eof --verbose
> +			--recount
> +			--directory=

I'd rather suggest dropping --no-add that is script-only and not useful in interactive use. I also won't add --build-fake-ancestor for the same reason.

Previous: Emmanuel Trillaud
Message 2 of 2 in “update 'git apply' bash-completion according to its man page”
  1. 9/9 update 'git apply' bash-completion according to its man pageEmmanuel Trillaud, Aug 8, 2009
  2. Junio C HamanoAug 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.