Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "SZEDER Gábor" <szeder.dev@gmail.com>
Cc: Fionn via GitGitGadget <gitgitgadget@gmail.com>,
	 git@vger.kernel.org,
	Felipe Contreras <felipe.contreras@gmail.com>,
	 Fionn <git@fionn.email>
Subject: Re: [PATCH] completion: exclude previous file arguments in Zsh
Date: Sun, 04 Oct 2026 14:13:14 -0700	[thread overview]
Message-ID: <xmqqcxtprwyd.fsf@gitster.g> (raw)
In-Reply-To: <asIJO3CZ/P/2L4qi@szeder.dev> ("SZEDER Gábor"'s message of "Sun, 4 Oct 2026 10:07:23 +0200")

SZEDER Gábor <szeder.dev@gmail.com> writes:

> What will be excluded in the following command line:
>
>   git -C dir -C subdir -c foo.bar=baz add file1 file2 <TAB>
>
> I think we should exclude only those arguments that come after the git
> command, in this case after "add", i.e. "file1" and "file2", but I
> suspect that everything starting with "dir" will get excluded.

I was writing the same message when I saw yours.

If you had a file called 'add' in the working tree and then typed
"a<TAB>" to complete, is 'add' offered together with other files
whose name begins with 'a'?


  parent reply	other threads:[~2026-10-04 21:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-03 11:22 [PATCH] completion: exclude previous file arguments in Zsh Fionn via GitGitGadget
2026-10-04  8:07 ` SZEDER Gábor
2026-10-04 16:17   ` Fionn
2026-10-04 21:13   ` Junio C Hamano [this message]
2026-10-05  1:44     ` Fionn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqcxtprwyd.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=felipe.contreras@gmail.com \
    --cc=git@fionn.email \
    --cc=git@vger.kernel.org \
    --cc=gitgitgadget@gmail.com \
    --cc=szeder.dev@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox