summaryrefslogtreecommitdiff
path: root/02_Functions.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2013-04-25 16:53:18 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2013-04-25 16:53:18 +0200
commit583dc4d6f6b2984c7580422f85419d226ca9713b (patch)
tree28fa6226d48caa6edbc5b50307451e8035e5d0ab /02_Functions.zsh
parent429ae08f4d807b00ca0b7cb8a4de9bedad2c59e0 (diff)
[Funcs] Removes git wrapper to improve speed-up
Diffstat (limited to '02_Functions.zsh')
-rw-r--r--02_Functions.zsh38
1 files changed, 19 insertions, 19 deletions
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()