Call git directly and bypass aliases

Useful so it doesn't get slowed down by wrappers like `hub`
This commit is contained in:
Sindre Sorhus
2013-03-10 17:39:18 +01:00
parent ecbec4ef99
commit ab01293a2d

View File

@@ -35,7 +35,7 @@ zstyle ':vcs_info:git*' actionformats ' %b|%a'
# Fastest possible way to check if repo is dirty # Fastest possible way to check if repo is dirty
git_dirty() { git_dirty() {
[ -d .git ] || return [ -d .git ] || return
git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo '*' command git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo '*'
} }
# Displays the exec time of the last command if set threshold was exceeded # Displays the exec time of the last command if set threshold was exceeded