Skip to contentSkip to conversation

Add interactive option in rebase command completion list.

PATCH In review Pascal Obry 5 participants 6 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add interactive option in rebase command completion list.

---
 contrib/completion/git-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/completion/git-completion.bash +1 -1
index 791e30f..96a712b 100755
@@ -865,7 +865,7 @@ _git_rebase ()
 		return
 		;;
 	--*)
-		__gitcomp "--onto --merge --strategy"
+		__gitcomp "--onto --merge --strategy --interactive"
 		return
 	esac
 	__gitcomp "$(__git_refs)"
Signature · 1 line
1.5.5.rc3.7.gba133
#1 lore raw

contrib/completion/git-completion.bash _git_rebase () · line 868

Quoted 2 lines · Pascal Obry
contrib/completion/git-completion.bash +1 -1
-		__gitcomp "--onto --merge --strategy"
+		__gitcomp "--onto --merge --strategy --interactive"

I personally do not think this is worth it where a single "-i" is enough.

#2 lore raw
Quoted 6 lines · Junio C Hamano

contrib/completion/git-completion.bash _git_rebase () · line 868

Quoted 2 lines · Pascal Obry
contrib/completion/git-completion.bash +1 -1
-		__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.

Signature · 8 lines
--|------------------------------------------------------
--| 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
#3 lore raw
Quoted 11 lines · Pascal Obry
Quoted 6 lines · Junio C Hamano

contrib/completion/git-completion.bash _git_rebase () · line 868

Quoted 2 lines · Pascal Obry
contrib/completion/git-completion.bash +1 -1
-		__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.

Signature · 1 line
Shawn.
#4 lore raw
Quoted 9 lines · Shawn O. Pearce
Quoted 8 lines · Pascal Obry
Quoted 6 lines · Junio C Hamano

contrib/completion/git-completion.bash _git_rebase () · line 868

Quoted 2 lines · Pascal Obry
contrib/completion/git-completion.bash +1 -1
-		__gitcomp "--onto --merge --strategy"
+		__gitcomp "--onto --merge --strategy --interactive"

I personally do not think this is worth it where a single "-i" is enough.

Quoted 7 lines
Quoted 3 lines

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.

Gaaaah.

I didn't mean SBO. I mean Acked-by!

Stupid fingers.

Signature · 1 line
Shawn.
#5 lore raw
In reply to Junio C Hamano
Quoted 6 lines · Junio C Hamano

contrib/completion/git-completion.bash _git_rebase () · line 868

Quoted 2 lines · Pascal Obry
contrib/completion/git-completion.bash +1 -1
-             __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