* [PATCH] Add interactive option in rebase command completion list.
@ 2008-04-06 17:32 Pascal Obry
2008-04-06 18:19 ` Junio C Hamano
0 siblings, 1 reply; 6+ messages in thread
From: Pascal Obry @ 2008-04-06 17:32 UTC (permalink / raw)
To: git; +Cc: Pascal Obry
Signed-off-by: Pascal Obry <pascal@obry.net>
---
contrib/completion/git-completion.bash | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 791e30f..96a712b 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -865,7 +865,7 @@ _git_rebase ()
return
;;
--*)
- __gitcomp "--onto --merge --strategy"
+ __gitcomp "--onto --merge --strategy --interactive"
return
esac
__gitcomp "$(__git_refs)"
--
1.5.5.rc3.7.gba133
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] Add interactive option in rebase command completion list.
2008-04-06 17:32 [PATCH] Add interactive option in rebase command completion list Pascal Obry
@ 2008-04-06 18:19 ` Junio C Hamano
2008-04-06 18:33 ` Elijah Newren
2008-04-06 18:46 ` Pascal Obry
0 siblings, 2 replies; 6+ messages in thread
From: Junio C Hamano @ 2008-04-06 18:19 UTC (permalink / raw)
To: Pascal Obry; +Cc: git, Pascal Obry
Pascal Obry <pascal.obry@gmail.com> writes:
> - __gitcomp "--onto --merge --strategy"
> + __gitcomp "--onto --merge --strategy --interactive"
I personally do not think this is worth it where a single "-i" is enough.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Add interactive option in rebase command completion list.
2008-04-06 18:19 ` Junio C Hamano
@ 2008-04-06 18:33 ` Elijah Newren
2008-04-06 18:46 ` Pascal Obry
1 sibling, 0 replies; 6+ messages in thread
From: Elijah Newren @ 2008-04-06 18:33 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Pascal Obry, git, Pascal Obry
On Sun, Apr 6, 2008 at 12:19 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Pascal Obry <pascal.obry@gmail.com> writes:
>
> > - __gitcomp "--onto --merge --strategy"
> > + __gitcomp "--onto --merge --strategy --interactive"
>
> I personally do not think this is worth it where a single "-i" is enough.
One advantage of bash completion, in my opinion, is being able to be
reminded of option names by tabbing twice to get a list of possible
completions. For exactly such a case, I'd be in favor of this patch.
Just my $0.02,
Elijah
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Add interactive option in rebase command completion list.
2008-04-06 18:19 ` Junio C Hamano
2008-04-06 18:33 ` Elijah Newren
@ 2008-04-06 18:46 ` Pascal Obry
2008-04-06 19:09 ` Shawn O. Pearce
1 sibling, 1 reply; 6+ messages in thread
From: Pascal Obry @ 2008-04-06 18:46 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Pascal Obry, git
Junio C Hamano a écrit :
> Pascal Obry <pascal.obry@gmail.com> writes:
>
>> - __gitcomp "--onto --merge --strategy"
>> + __gitcomp "--onto --merge --strategy --interactive"
>
> I personally do not think this is worth it where a single "-i" is enough.
I like unambiguous name (I do prefer --interactive instead of -i). It is
painful to enter so the bash completion come quite handy here. The patch
is safe, simple and clean, I see no reason to not include it.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Add interactive option in rebase command completion list.
2008-04-06 18:46 ` Pascal Obry
@ 2008-04-06 19:09 ` Shawn O. Pearce
2008-04-06 20:08 ` Shawn O. Pearce
0 siblings, 1 reply; 6+ messages in thread
From: Shawn O. Pearce @ 2008-04-06 19:09 UTC (permalink / raw)
To: Pascal Obry; +Cc: Junio C Hamano, Pascal Obry, git
Pascal Obry <pascal@obry.net> wrote:
> Junio C Hamano a écrit :
> >Pascal Obry <pascal.obry@gmail.com> writes:
> >
> >>- __gitcomp "--onto --merge --strategy"
> >>+ __gitcomp "--onto --merge --strategy --interactive"
> >
> >I personally do not think this is worth it where a single "-i" is enough.
>
> I like unambiguous name (I do prefer --interactive instead of -i). It is
> painful to enter so the bash completion come quite handy here. The patch
> is safe, simple and clean, I see no reason to not include it.
I agree with Pascal here, include the option.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
--
Shawn.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Add interactive option in rebase command completion list.
2008-04-06 19:09 ` Shawn O. Pearce
@ 2008-04-06 20:08 ` Shawn O. Pearce
0 siblings, 0 replies; 6+ messages in thread
From: Shawn O. Pearce @ 2008-04-06 20:08 UTC (permalink / raw)
To: Pascal Obry; +Cc: Junio C Hamano, Pascal Obry, git
"Shawn O. Pearce" <spearce@spearce.org> wrote:
> Pascal Obry <pascal@obry.net> wrote:
> > Junio C Hamano a écrit :
> > >Pascal Obry <pascal.obry@gmail.com> writes:
> > >
> > >>- __gitcomp "--onto --merge --strategy"
> > >>+ __gitcomp "--onto --merge --strategy --interactive"
> > >
> > >I personally do not think this is worth it where a single "-i" is enough.
> >
> > I like unambiguous name (I do prefer --interactive instead of -i). It is
> > painful to enter so the bash completion come quite handy here. The patch
> > is safe, simple and clean, I see no reason to not include it.
>
> I agree with Pascal here, include the option.
>
> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Gaaaah.
I didn't mean SBO. I mean Acked-by!
Stupid fingers.
--
Shawn.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-04-06 20:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-06 17:32 [PATCH] Add interactive option in rebase command completion list Pascal Obry
2008-04-06 18:19 ` Junio C Hamano
2008-04-06 18:33 ` Elijah Newren
2008-04-06 18:46 ` Pascal Obry
2008-04-06 19:09 ` Shawn O. Pearce
2008-04-06 20:08 ` Shawn O. Pearce
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).