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

Re: [PATCH] stash clear: allow -v/--verbose to be passed

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 13, 2015, 18:51 UTC
Message-ID
<xmqqy4p6cy4k.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1421171677-12215-1-git-send-email-kuleshovmail@gmail.com>
Alexander Kuleshov <kuleshovmail@gmail.com> writes:
> Added new option -v/--verbose to 'git stash clear' for verbose output.
Why?

I would sort-of understand if it were "git stash clear --confirm" that internally runs "git stash list" and then asks "Are you sure (Y/n)?" and then finally clears [*1*], but what value does it add to the system to be able to see what you lost and cannot recover anymore after the damage is done?

Note that I am not advocating adding "clear --confirm" here (that is what I mean by "sort-of understand"); the users can do that "Do I really want to discard these?" themselves.

[Footnote]

*1* Or perhaps copying the stash to boneyard/stash before removing them so that they can "undo" once.

Previous: Alexander Kuleshov
Message 2 of 2 in “stash clear: allow -v/--verbose to be passed”
  1. stash clear: allow -v/--verbose to be passedAlexander Kuleshov, Jan 13, 2015
  2. Junio C HamanoJan 13, 2015

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.