tpope / vim-fugitive

fugitive.vim: A Git wrapper so awesome, it should be illegal
https://www.vim.org/scripts/script.php?script_id=2975
20.01k stars 1.01k forks source link

`:Git stash list` does nothing when the stash is empty #2301

Closed finite-state-machine closed 5 months ago

finite-state-machine commented 5 months ago

When :Git stash list is run and the stash is empty, no feedback or output is emitted, and the user is not prompted to press enter to continue (as they typically would be after running this command).

While this silence is an expected behaviour at the command-line, it's a bit surprising in a TUI, particularly as the user would normally be prompted to press enter. It might be helpful to emit a non-blocking message such as "stash is empty" when this command exits with no output.

tpope commented 5 months ago

This is a wontfix. Avoiding the "press enter" prompt is highly desirable for other silent commands like :Git add. I don't want to be responsible for micromanaging which commands get the silent treatment.