Hello,
I stumbled upon something that annoyed me a bit, as I was working with
git stash to commit some big pile of modifications in small commits...
I wanted to get help wrt "git stash drop" and did it the following way :
[steps to reproduce]
mkdir tmp cd tmp git init touch test.txt git add test.txt git commit -a -m "initial version" echo zorglub > test.txt git stash git stash drop --help refs/stash@{0} supprimé (ff100a8c2f1b7b00b9100b32d2a5dc19a8b0092a)
And that was definitely not what I intended. Fortunately for me I had a backup of that stashed diff somewhere else, but I was still surprised,
because I was used to:
git $(SOMETHING) --help
to do what I want.
This is probably because "drop" is a subcommand of "stash", as evidenced by:
git stash --help drop
working as intended (even if as as side effect of --help ignoring further parameters)
-- Vincent Legoll