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.