Permalink
Browse files

branch-check: show dirty state in color

  • Loading branch information...
1 parent cf5ac04 commit 29f52c92fec717e073fc9a23faec8ba1ad6c2dab @sitaramc committed Jan 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 git-branch-check
View
2 git-branch-check
@@ -175,7 +175,7 @@ sub compare {
}
sub dirty {
- try "git status -s -uno | cut -c1-2 | sort | uniq -c";
+ try "git -c color.ui=always status -s | egrep -o '^.*?m ' | sort |uniq -c";
return ( text =~ /./ );
}

0 comments on commit 29f52c9

Please sign in to comment.