Re: [RFC] New command: 'git snapshot'.
- From
Jeff King <peff@peff.net>
- Date
- Feb 10, 2009, 23:38 UTC
- Message-ID
- <20090210233801.GA9617@coredump.intra.peff.net>
- In-Reply-To
- <7vy6wdkhzk.fsf@gitster.siamese.dyndns.org>
On Tue, Feb 10, 2009 at 03:08:31PM -0800, Junio C Hamano wrote:
Show 10 quoted lines
> >> Remember that 'stash' is actually TWO commands in one: > >> * Save current state > >> * Reset to HEAD > >> > >> My primary reason to use snapshots is to AVOID the second step. > > > > Doesn't that argue for "git stash --no-reset" or similar instead of a > > separate command? > > How is it different from "git stash create"?
According to the man page, "git stash create" doesn't even store it in a ref. I think the point would be to store it in a ref somewhere (as "git stash save" does), but not do the reset.
But I have never once used "git stash create", so maybe I am misunderstanding it.
-Peff