Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: git 2.19 completion update
- X-seq: zsh-workers 43699
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: git 2.19 completion update
- Date: Tue, 16 Oct 2018 23:20:34 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm1; bh=w00ezz3bvM0nRqXSDPQtRwhc7nBreagJmmjvXyWp AMs=; b=b+N6NViF3+8j4vUbi/o4fuqaAj/d1pVHN8oTuQwngbvVW5CaNVkb+A6J Tjr+eUHpk91EE6QdSdceRpOg2DYeze2M//9cW6DFnxMZ1bvPIMw2ZcUF2FtFEhD1 v7fmtjAjHhgvm03epo2PVhNo8pNCo7NAhVRpJ0RA0U7VS3GmjHXDTwBviCsPSvXK 4XIXWFQ5dpqSdLfaL1x3Szigy+TGNCxU+ovcfbAwl4cL67lnbYyKf+gxWyPatSZR awt4CyJDOkV+6+4ws2pOcBjCcI+aprawH2iRXB95SoA4TW8gBNwdyL/WGVRcyfte uSHLy+eQs0YjAKRhpG7WQCiMyyCASA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=w00ezz3bvM0nRqXSDPQtRwhc7nBreagJmmjvXyWpA Ms=; b=q6F6M+X1VkF2TiYlURLoWNimoVJv7yOA+KUGI51ri3SwStdQKhNJBAFG2 WKo9uLnUDB0IwDSFzN0ZCkiNxz8DfRx5lDunjrd/r1SIqufZuOBol34/AD35DY/Z snpi9Tvo7LZeHiizWAqcMPk9H5YDLEAUKGX2KdEHGICsfRUe5OolY1Qor6Y6gylo Xbs/gIj7pp8QEORa4JgxSb73BRF7SiGMK3C55AxYckh3t8nZ9xJwkDYLpYiC3OeP loNi15cDeO98ey9Lkii4HLZpow/fnNDaGuc8q/6vkmzHBxLSPv0Q+bcSDR050cIX xoBbOD5r60RR3JH+nq/Pa7kKs8+cQ==
- In-reply-to: <65933-1539730826.973717@3lp_.duon.gcyw>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <65933-1539730826.973717@3lp_.duon.gcyw>
Oliver Kiddle wrote on Wed, Oct 17, 2018 at 01:00:26 +0200:
> +++ b/Completion/Unix/Command/_git
> @@ -295,7 +295,7 @@ _git-branch () {
> declare l c m d e
>
> l='--color --no-color -r --remotes -a -v --verbose --abbrev --no-abbrev --list --points-at --sort'
> - c='-l --create-reflog -f --force -t --track --no-track -u --set-upstream --set-upstream-to --unset-upstream --contains --no-contains --merged --no-merged'
> + c='--create-reflog -f --force -t --track --no-track -u --set-upstream --set-upstream-to --unset-upstream --contains --no-contains --merged --no-merged'
> m='-c --copy -C -m --move -M --edit-description'
> d='-d --delete -D'
>
> @@ -337,7 +337,7 @@ _git-branch () {
> "($c $m $d : -v -vv --verbose)"{-v,-vv,--verbose}'[show SHA1 and commit subject line for each head]' \
> "($c $m $d :)--abbrev=[set minimum SHA1 display-length]: :__git_guard_number length" \
> "($c $m $d :)--no-abbrev[don't abbreviate sha1s]" \
> - "($l $m $d)"{-l,--create-reflog}"[create the branch's reflog]" \
> + "($l $m $d)--create-reflog[create the branch's reflog]" \
> "($l $m $d -f --force)"{-f,--force}'[force the creation of a new branch]' \
> "($l $m $d -t --track)"{-t,--track}'[setup configuration so that pull merges from the start point]' \
> "($l $m $d)--no-track[override the branch.autosetupmerge configuration variable]" \
Not related to the patch, but _git-branch considers --remotes and --contains
to be mutually exclusive, though they aren't: «git branch -r --contains=HEAD»
works.
I'd have fixed it, but I didn't quite understand the logic behind these
one-letter variables.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author