dotfiles/.config/fish/functions/__gitnow_has_uncommited_changes.fish

6 lines
190 B
Fish

# GitNow — Speed up your Git workflow. 🐠
# https://github.com/joseluisq/gitnow
function __gitnow_has_uncommited_changes
command git diff-index --quiet HEAD -- || echo "1" 2>&1
end