git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Windl, Ulrich" <u.windl@ukr.de>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: "git stash pop -k"
Date: Wed, 10 Apr 2024 07:27:49 +0000	[thread overview]
Message-ID: <7192686e00724d5eb4991887c11089b5@ukr.de> (raw)

(This is a resend from 2024-02-01 and from today)
Hi!

Using git-2.26.2 (probably quite old), I frequently do:

git add –interactive
git stash -k
# test whether the stages stuff looks OK
git commit
git stash pop
# sometimes I’m getting conflict s to resolve in some files
#...continue work…
git add –interactive
git commit

Unfortunately I many cases I overlooked that “git stash pop” does change the index (i.e.: it does “git add” for some files).
I doubt whether this is useful at all, and specifically I wonder why I cannot use option -k for “git stash pop” to keep the index, too.

See also https://stackoverflow.com/q/63843552/6607497

So I’m suggesting a new feature 😉

Kind regards,
Ulrich


                 reply	other threads:[~2024-04-10  7:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=7192686e00724d5eb4991887c11089b5@ukr.de \
    --to=u.windl@ukr.de \
    --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).