From: Heiko Voigt <hvoigt@hvoigt.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Steffen Jaeckel <steffen.jaeckel@stzedn.de>,
git@vger.kernel.org,
Felipe Contreras <felipe.contreras@gmail.com>,
Jens Lehmann <jens.lehmann@web.de>
Subject: Re: Re: [PATCH] completion: add option --recurse-submodules to "git push"
Date: Tue, 18 Dec 2012 18:59:42 +0100 [thread overview]
Message-ID: <20121218175942.GA26151@book.hvoigt.net> (raw)
In-Reply-To: <7vehj1ixr6.fsf@alter.siamese.dyndns.org>
Hi,
sorry for the late reply.
On Fri, Dec 07, 2012 at 09:21:33AM -0800, Junio C Hamano wrote:
> Steffen Jaeckel <steffen.jaeckel@stzedn.de> writes:
>
> > Signed-off-by: Steffen Jaeckel <steffen.jaeckel@stzedn.de>
> > ---
> > contrib/completion/git-completion.bash | 9 +++++++++
> > 1 file changed, 9 insertions(+)
> >
> > diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> > index 0b77eb1..5b4d2e1 100644
> > --- a/contrib/completion/git-completion.bash
> > +++ b/contrib/completion/git-completion.bash
> > @@ -1434,6 +1434,10 @@ _git_pull ()
> > __git_complete_remote_or_refspec
> > }
> >
> > +__git_push_recurse_submodules_options="
> > + check on-demand
> > +"
>
> Most of the existing completion functions do not seem to define
> separate variables like this; instead, they literally embed their
> choices at the point of use.
>
> Is it expected that the same set of choices will appear in the
> completion of many other subcommand options? [jc: Cc'ed Heiko so
> that we can sanity check the answer to this question]. If so, the
> variable may be justified; otherwise, not.
No I think not. At least not exactly the same. check will be limited to
push since it only makes sense there. on-demand on the other hand is
already used for fetch and pull. Currently no more possible uses come to
my mind. checkout and others will learn to traverse submodules but that will
most likely be a boolean (to switch it on and off).
CC'ed Jens so he can also take a look.
Cheers Heiko
prev parent reply other threads:[~2012-12-18 18:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-07 12:28 [PATCH] completion: add option --recurse-submodules to "git push" Steffen Jaeckel
2012-12-07 17:21 ` Junio C Hamano
2012-12-12 22:30 ` Felipe Contreras
2012-12-18 17:59 ` Heiko Voigt [this message]
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=20121218175942.GA26151@book.hvoigt.net \
--to=hvoigt@hvoigt.net \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jens.lehmann@web.de \
--cc=steffen.jaeckel@stzedn.de \
/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;
as well as URLs for NNTP newsgroup(s).