From 583dc4d6f6b2984c7580422f85419d226ca9713b Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 25 Apr 2013 16:53:18 +0200 Subject: [Funcs] Removes git wrapper to improve speed-up --- 02_Functions.zsh | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to '02_Functions.zsh') diff --git a/02_Functions.zsh b/02_Functions.zsh index 567170a..e6ba0c1 100644 --- a/02_Functions.zsh +++ b/02_Functions.zsh @@ -8,25 +8,25 @@ ## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS ## -__cmd_exists git && \ -git () { - GIT=$(which -p git) - case $1 in - init|clone|config) - ;; - *) - if [ "$( ( $GIT ls-files ; $GIT ls-tree HEAD . ) 2>&- | head -n1)" = ""\ - -a \( ! -d .git -o "$($GIT rev-parse --git-dir 2>&-)" != ".git" \)\ - -a "$($GIT rev-parse --is-inside-git-dir 2>&-)" != "true" ] - then - echo >&2 "git $1: the current folder is not managed by git" - return - fi - ;; - esac - - $(which -p git) $@ -} +#__cmd_exists git && \ +#git () { +# GIT=$(which -p git) +# case $1 in +# init|clone|config|log|status|add) +# ;; +# *) +# if [ "$( ( $GIT ls-files ; $GIT ls-tree HEAD . ) 2>&- | head -n1)" = ""\ +# -a \( ! -d .git -o "$($GIT rev-parse --git-dir 2>&-)" != ".git" \)\ +# -a "$($GIT rev-parse --is-inside-git-dir 2>&-)" != "true" ] +# then +# echo >&2 "git $1: the current folder is not managed by git" +# return +# fi +# ;; +# esac +# +# $(which -p git) $@ +#} __cmd_exists when && \ when() -- cgit v1.2.3