🐛 Fix gwip function

This commit is contained in:
Marley Rae 2024-01-31 17:32:03 -08:00
parent fc242d841e
commit c9d2adb5d5

View file

@ -158,10 +158,10 @@ abbr -a gstas --position command "git stash show --text"
function gwip
git add -A
git rm (git ls-files --deleted) 2> /dev/null
git commit -- -no-verify --no-gpg-sign --message "🚧 --wip-- [skip ci]"
git commit --no-verify --no-gpg-sign --message "🚧 --wip-- [skip ci]"
end
function unwip
function gunwip
git rev-list --max-count=1 --format="%s" HEAD | \
grep -q "🚧 --wip-- [skip ci]" \
&& git reset HEAD~1