oh-my-fish/lib/git/git_is_dirty.fish

4 lines
149 B
Fish
Raw Normal View History

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