git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Yuri <yuri@rawbw.com>
To: Chris Torek <chris.torek@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: stash push/pop unstages files?
Date: Sun, 5 Sep 2021 12:02:21 -0700	[thread overview]
Message-ID: <5f09cba9-b7dc-d7b6-1d3f-e7fb8ca28c6c@rawbw.com> (raw)
In-Reply-To: <CAPx1Gvc6noTDYPt9x3b4_TE0z8-KE5cB6KQHcn5UL9pi0cKoGg@mail.gmail.com>

On 9/5/21 10:15 AM, Chris Torek wrote:
> It does,*provided*  you invoke the pop step with `--index`.
>
> When `git stash push` makes a stash, it saves both the index
> (staging area) and working tree, as two separate commits.


Why 'stash push' and 'stash pop' are asymmetric in what they do by default?
Wouldn't it make more sense to make 'stash pop' precisely revert what 
'stash push' does, and have an option '--no-index' instead?


Yuri



  reply	other threads:[~2021-09-05 19:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-05 17:09 stash push/pop unstages files? Yuri
2021-09-05 17:15 ` Chris Torek
2021-09-05 19:02   ` Yuri [this message]
2021-09-05 19:19     ` Chris Torek

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5f09cba9-b7dc-d7b6-1d3f-e7fb8ca28c6c@rawbw.com \
    --to=yuri@rawbw.com \
    --cc=chris.torek@gmail.com \
    --cc=git@vger.kernel.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).