{"thread":{"id":"61304","subject":"\"git stash pop -k\"","startedAt":"2024-04-10T07:27:51Z","lastAt":"2024-04-10T07:27:51Z","messageCount":1,"participants":["Windl, Ulrich"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"492691","messageId":"7192686e00724d5eb4991887c11089b5@ukr.de","threadId":"61304","inReplyTo":null,"subject":"\"git stash pop -k\"","fromName":"Windl, Ulrich","fromEmail":"u.windl@ukr.de","sentAt":"2024-04-10T07:27:49Z","receivedAt":"2024-04-10T07:27:51Z","isPatch":false,"sender":{"key":"u.windl@ukr.de","avatar":null},"body":"(This is a resend from 2024-02-01 and from today)\nHi!\n\nUsing git-2.26.2 (probably quite old), I frequently do:\n\ngit add –interactive\ngit stash -k\n# test whether the stages stuff looks OK\ngit commit\ngit stash pop\n# sometimes I’m getting conflict s to resolve in some files\n#...continue work…\ngit add –interactive\ngit commit\n\nUnfortunately I many cases I overlooked that “git stash pop” does change the index (i.e.: it does “git add” for some files).\nI 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.\n\nSee also https://stackoverflow.com/q/63843552/6607497\n\nSo I’m suggesting a new feature 😉\n\nKind regards,\nUlrich\n\n"}]}