Add make-stash-drop command

Sometimes you can get stuck in a loop where git stash pop preserves the
stash commit. Dropping that commit if it's a STASH commit after an
update is totally fine.
This commit is contained in:
ducoterra
2021-11-01 10:01:12 -04:00
parent f81d846f31
commit 0f6eeb776e

View File

@@ -16,6 +16,10 @@ warning:
@printf "Cancel with ctrl + c within 3 seconds."
@sleep 3
.PHONY: make-stash-drop
make-stash-drop:
@if [ ! -z "$$(git stash list | grep -r 'stash@{0}.*common')" ]; then git stash drop; fi
.PHONY: make-update
make-update: warning
@git stash save $(STASH)