refs="${cur%/*}"
;;
*)
- if [ -e "$dir/HEAD" ]; then echo HEAD; fi
+ for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do
+ if [ -e "$dir/$i" ]; then echo $i; fi
+ done
format="refname:short"
refs="refs/tags refs/heads refs/remotes"
;;
config --get "alias.$1")
for word in $cmdline; do
case "$word" in
+ \!gitk|gitk)
+ echo "gitk"
+ return
+ ;;
\!*) : shell command alias ;;
-*) : option ;;
*=*) : setting env ;;
COMPREPLY=()
}
+_git_gitk ()
+{
+ _gitk
+}
+
_git_grep ()
{
__git_has_doubledash && return