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

Re: [PATCH] completion: complete tags with git tag --delete/--verify

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 19, 2018, 16:55 UTC
Message-ID
<xmqqk1u8vwce.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180318040135.30710-1-tmz@pobox.com>
Todd Zullinger <tmz@pobox.com> writes:
Show 10 quoted lines
> Completion of tag names has worked for the short -d/-v options since
> 88e21dc746 ("Teach bash about completing arguments for git-tag",
> 2007-08-31).  The long options were not added to "git tag" until many
> years later, in c97eff5a95 ("git-tag: introduce long forms for the
> options", 2011-08-28).
>
> Extend tag name completion to --delete/--verify.
>
> Signed-off-by: Todd Zullinger <tmz@pobox.com>
> ---
Thanks, makes sense.
Show 16 quoted lines
>  contrib/completion/git-completion.bash | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index 6da95b8095..c7957f0a90 100644
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -2967,7 +2967,7 @@ _git_tag ()
>  	while [ $c -lt $cword ]; do
>  		i="${words[c]}"
>  		case "$i" in
> -		-d|-v)
> +		-d|--delete|-v|--verify)
>  			__gitcomp_direct "$(__git_tags "" "$cur" " ")"
>  			return
>  			;;
Previous: Todd Zullinger
Message 2 of 2 in “completion: complete tags with git tag --delete/--verify”
  1. completion: complete tags with git tag --delete/--verifyTodd Zullinger, Mar 18, 2018
  2. Junio C HamanoMar 19, 2018

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.