Add Option for Stash Pop/Apply to Keep Index
git stash pop and apply support the --index option to preserve the index which was stashed. Please add an option to allow this via the app. Or just make it the default. I don't think it would ever be a bad thing.
Comments: 1
Oldest
•
Newest
•
Most likes
•
Fewest likes
-
15 Jun, '23
ToddHighlighted comment
Additionally, it'd be nice if GitKraken didn't stage changes before stashing, either. For example, let's say I have pending changes to two files, one staged and one not. If I use the CLI to 'git stash' and then 'git stash pop --index', I will be back to having one file staged and one not. If I use GitKraken to stash, and then do 'git stash pop --index', both files will be staged, because GitKraken staged the other file before stashing. If I use GitKraken to pop the stash, neither file will be staged, because GitKraken doesn't keep the index.
So please stop having GitKraken stage changes before stashing, and at least add an option to have it keep the index when popping/applying a stash. The stash features in GitKraken are worthless to me right now, because I often care about maintaining the index.