wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.32k stars 136 forks source link

Fix: Early out from _forgit_stash_push when no files can be stashed #376

Closed sandr01d closed 2 months ago

sandr01d commented 3 months ago

Check list

Description

Previously when using gsp without any local changes, an empty file picker would open. Check if any files can be stashed and show a message instead when this isn't the case. Fixes #369

Type of change

Test environment

carlfriedrich commented 3 months ago

Why not simply use fzf's --exit-0 argument for this?

sandr01d commented 3 months ago

Why not simply use fzf's --exit-0 argument for this?

@carlfriedrich wasn't aware this exists, thanks! Updated accordingly.

sandr01d commented 2 months ago

@carlfriedrich could you let me know if the change works like this for you?