+10
Completed

Rename stash

Arash Khosravi 7 years ago updated by Thomas Singer 5 years ago 7

I would like to rename my stash after I created it.

This stackoverflow link shows how we can do it with git commands mnually:

https://stackoverflow.com/a/35549615/3328979

No bad idea, especially when turning the Save Stash into a command that would execute without a confirmation dialog. (using always the default message). Maybe it would be useful to split "Save Stash" into "Stash All" and "Stash Selection" (which could show the dialog)?

> Maybe it would be useful to split "Save Stash" into "Stash All" and "Stash Selection" (which could show the dialog)?


+1 for this. I find the current behavior a little confusing, because a persistent checkbox value in the stash dialog controls what is essentially a one-off decision (i.e. stash all or stash selected). Having separate options would be preferable to me.

Please try build #11091. It has splitted "Stash All" and "Stash Selection".

+1

I've implemented the renaming now, but the problem of the "git stash store -m 'new message' <stash-id>" is that the stash commits are not touched and hence will be displayed in the log's Commits view with the initial message. Currently, SmartGit also shows the commit's message also in the Branches view, so you will not see a difference after renaming - we'll discuss internally whether this should be considered a bug or not.

Thank you for the update. I think it important to show the renamed message in the branch view and log. It will be confusing to show the old message after the rename.