git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[BUG] `git stash drop --help` removes stash

From
ADAlexander Daniel <alexander.daniel@openforce.com>
Date
May 22, 2012, 07:29 UTC
Message-ID
<95877607-FED0-41C0-9F12-B91FE9DE7871@openforce.com>

SUMMARY `git stash drop --help` removes stash@{0}

VERSION $ git --version git version 1.7.10.2

STEPS TO REPRODUCE
- put something on the stash with `git stash`
- Naively try to show help for `git stash drop` with `git stash drop --help`
- `git stash drop --help` actually removes stash@{0}:
  $ git stash drop --help
  Dropped refs/stash@{0} (bfee7acd94b85e2b0bb5ef172893872140ba0520)

EXPECTED BEHAVIOR: Invalid parameter error message is displayed (no modification of the stash)

Alex
Next: Junio C Hamano
Message 1 of 2 in “[BUG] `git stash drop --help` removes stash”
  1. Alexander DanielMay 22, 2012
  2. Junio C HamanoMay 22, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.