Skip to content
Snippets Groups Projects
Commit 39ab7be9 authored by Jani Nikula's avatar Jani Nikula
Browse files

completion: complete dim retip to local branches

parent d6a9e009
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,11 @@ dim ()
fi
}
_dim_git_branches()
{
git for-each-ref --format='%(refname:short)' refs/heads
}
_dim ()
{
local args arg cur prev words cword split
......@@ -107,6 +112,9 @@ _dim ()
COMPREPLY=( $( compgen -W "$nightly_branches all" -- $cur ) )
fi
;;
retip)
COMPREPLY=($(compgen -W "$(_dim_git_branches)" -- $cur))
;;
esac
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment