From ea3962b380d033e2af1cc53397ad3cc563dff79e Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 8 Apr 2014 11:06:39 -0700 Subject: [PATCH] Fix git_is_dirty --- dotfiles/lib/shellrc/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/lib/shellrc/functions.sh b/dotfiles/lib/shellrc/functions.sh index 01aa6875..d7eee873 100644 --- a/dotfiles/lib/shellrc/functions.sh +++ b/dotfiles/lib/shellrc/functions.sh @@ -5,7 +5,7 @@ function parse_git_branch() { } function git_is_dirty() { - git diff-index --quiet --cached HEAD && git diff-files --quiet + ! test -z "$(git status --porcelain)" } function current_shell() {