threads / patch / 29562

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

Subject: [PATCH] bash-completion: add --edit-description to choices for branch

## tl;dr

3 messages between Feb 6, 2012 and Feb 7, 2012. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Paul Gortmaker· Feb 6, 2012, 17:03 UTC · lore

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

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Show changes to contrib/completion/git-completion.bash +1 −1
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 78be195..a2965f7 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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
 			"
 		;;
 	*)
-- 
1.7.9
Thomas Rast· Feb 6, 2012, 23:25 UTC · re: Paul Gortmaker · lore

Re: [PATCH] bash-completion: add --edit-description to choices for branch

Paul Gortmaker <paul.gortmaker@windriver.com> writes:
> 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.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Paul Gortmaker· Feb 7, 2012, 00:16 UTC · re: Thomas Rast · lore

Re: [PATCH] bash-completion: add --edit-description to choices for branch

On 12-02-06 06:25 PM, Thomas Rast wrote:
Show 7 quoted lines
> Paul Gortmaker <paul.gortmaker@windriver.com> writes:
> 
>> 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.
> 

← back to recent threads