Skip to contentSkip to conversation

bash-completion: add --edit-description to choices for branch

PATCH In review Paul Gortmaker 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bash-completion: add --edit-description to choices for branch

Support was recently added to allow storing a branch description, so teach bash completion about it.

contrib/completion/git-completion.bash +1 -1
index 78be195..a2965f7 100755
@@ -1152,7 +1152,7 @@ _git_branch ()
 		__gitcomp "
 			--color --no-color --verbose --abbrev= --no-abbrev
 			--track --no-track --contains --merged --no-merged
-			--set-upstream
+			--set-upstream --edit-description
 			"
 		;;
 	*)
Signature · 1 line
1.7.9
#1 lore raw
Quoted 2 lines · Paul Gortmaker

Support was recently added to allow storing a branch description, so teach bash completion about it.

See 48c07d8 (completion: --edit-description option for git-branch, 2012-01-29) which is already in next.

Signature · 2 lines
Thomas Rast
trast@{inf,student}.ethz.ch
#2 lore raw
Quoted 7 lines · Thomas Rast
Quoted 2 lines · Paul Gortmaker

Support was recently added to allow storing a branch description, so teach bash completion about it.

See 48c07d8 (completion: --edit-description option for git-branch, 2012-01-29) which is already in next.

OK thanks, I did a quick google, didn't get any obvious clues that it was done already, but must have missed it.

P.

Quoted 1 line