dotfiles/fish/functions/git_dirty.fish

8 lines
98 B
Fish
Raw Normal View History

function git_dirty
2009-06-13 20:02:38 +10:00
if not is_git_repo
return 1
end
not git diff HEAD --quiet ^/dev/null
end