From 768a42058211cf1b211e98e2877df0ce96cde392 Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Mon, 23 Jul 2012 10:59:10 -0300 Subject: [PATCH] git function to determine if git is dirty --- functions/git/is_git_dirty.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 functions/git/is_git_dirty.fish diff --git a/functions/git/is_git_dirty.fish b/functions/git/is_git_dirty.fish new file mode 100644 index 0000000..981587b --- /dev/null +++ b/functions/git/is_git_dirty.fish @@ -0,0 +1,3 @@ +function is_git_dirty + echo (git status -s --ignore-submodules=dirty ^/dev/null) +end