Skip to content

Commit

Permalink
Add Bash completion for obtain-work command
Browse files Browse the repository at this point in the history
`obtain-work` completion will propose fetched remote branches as the
candidates.
  • Loading branch information
extsoft committed Oct 8, 2019
1 parent 2c31b85 commit b30e2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/git-elegant.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _git_elegant() {
local data=$(git branch | awk -F ' +' '! /\(no branch\)/ {print $2}')
COMPREPLY=( $(compgen -W "${data}" ${cur}) )
return 0 ;;
accept-work)
accept-work|obtain-work)
COMPREPLY=(
$(compgen -W "$(git branch --remotes --list)" -- ${cur})
)
Expand Down

0 comments on commit b30e2a9

Please sign in to comment.