From: "Kyle J. McKay" <mackyle@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Michael J Gruber" <git@drmicha.warpmail.net>,
git@vger.kernel.org,
"Armin Ronacher" <armin.ronacher@active-4.com>,
"Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Subject: Re: [RFD/PATCH] stash: introduce checkpoint mode
Date: Thu, 19 Feb 2015 15:43:16 -0800 [thread overview]
Message-ID: <04CB0145-FE99-46EB-8430-069E05DF31EB@gmail.com> (raw)
In-Reply-To: <xmqq7fvd23mw.fsf@gitster.dls.corp.google.com>
On Feb 19, 2015, at 09:49, Junio C Hamano wrote:
> "Kyle J. McKay" <mackyle@gmail.com> writes:
>
>> What about a shortcut to "reset-and-apply" as well?
>>
>> I have often been frustrated when "git stash apply" refuses to work
>> because I have changes that would be stepped on and there's no --
>> force
>> option like git checkout has. I end up doing a reset just so I can
>> run stash apply.
>
> Doesn't that cut both ways, though?
>
> A single step short-cut, done in any way other than a more explicit
> way such as "git reset --hard && git stash apply" (e.g. "git stash
> reset-and-apply" or "git stash apply --force") that makes it crystal
> clear that the user _is_ discarding, has a risk of encouraging users
> to form a dangerous habit of invoking the short-cut without thinking
> and leading to "oops, I didn't mean that!".
Does that reasoning not also apply to the plethora of commands that
take "--force" already?
I didn't check them all, but tag, checkout, push and branch
immediately come to mind. Why is it okay for all those other commands
to have a --force mode, but not git stash?
prev parent reply other threads:[~2015-02-19 23:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-16 10:41 Experience with Recovering From User Error (And suggestions for improvements) Armin Ronacher
2015-02-16 12:09 ` Ævar Arnfjörð Bjarmason
2015-02-16 12:10 ` Ævar Arnfjörð Bjarmason
2015-02-16 12:37 ` Duy Nguyen
2015-02-16 13:29 ` Armin Ronacher
2015-02-18 9:46 ` Michael J Gruber
[not found] ` <19A600EC-080C-48F1-A949-9A32AFC247E7@gmail.com>
2015-02-19 11:01 ` Michael J Gruber
2015-02-19 12:34 ` [RFD/PATCH] stash: introduce checkpoint mode Michael J Gruber
2015-02-19 13:58 ` Kyle J. McKay
2015-02-19 17:49 ` Junio C Hamano
2015-02-19 23:43 ` Kyle J. McKay [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=04CB0145-FE99-46EB-8430-069E05DF31EB@gmail.com \
--to=mackyle@gmail.com \
--cc=armin.ronacher@active-4.com \
--cc=avarab@gmail.com \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).