git/list[1] front-page[2] threads[3] people[4] search[5] about
 

"git stash pop -k"

From
WUWindl, Ulrich <u.windl@ukr.de>
Date
Apr 10, 2024, 07:27 UTC
Message-ID
<7192686e00724d5eb4991887c11089b5@ukr.de>

(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

Message 1 of 1 in “"git stash pop -k"”
  1. Windl, UlrichApr 10, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.