oh-my-fish/lib/git/git_is_dirty.fish
2015-08-27 00:20:13 +09:00

4 lines
149 B
Fish

function git_is_dirty -d "Check if there are changes to tracked files"
git_is_repo; and not command git diff --no-ext-diff --quiet --exit-code
end