completion: add support for backwards compatibility
[gitweb.git] / contrib / completion / git-completion.bash
index 5d608a125bbbd1330692ba4c11ed1295e6950ad2..ac29193b0c8b2f14c34a2bb46930aaaa22b195f0 100755 (executable)
@@ -2702,6 +2702,18 @@ __git_complete ()
                || complete -o default -o nospace -F $wrapper $1
 }
 
+# wrapper for backwards compatibility
+_git ()
+{
+       __git_wrap_main_git
+}
+
+# wrapper for backwards compatibility
+_gitk ()
+{
+       __git_wrap_main_gitk
+}
+
 __git_complete git _main_git
 __git_complete gitk _main_gitk