Submitter | Sean Farley |
---|---|
Date | Nov. 26, 2013, 7:54 p.m. |
Message ID | <e5eb668a5d0bd5643192.1385499289@laptop.local> |
Download | mbox | patch |
Permalink | /patch/3164/ |
State | Accepted |
Commit | 56df59cc4212853fdbeebe3e6475e924a3e6c70a |
Headers | show |
Comments
Patch
diff --git a/contrib/bash_completion b/contrib/bash_completion --- a/contrib/bash_completion +++ b/contrib/bash_completion @@ -92,10 +92,17 @@ local files="$(_hg_cmd status -n$1 "glob:$cur**")" local IFS=$'\n' COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur")) } +_hg_branches() +{ + local branches="$(_hg_cmd branches -q)" + local IFS=$'\n' + COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$branches' -- "$cur")) +} + _hg_bookmarks() { local bookmarks="$(_hg_cmd bookmarks -q)" local IFS=$'\n' COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$bookmarks' -- "$cur"))