How to shelve changes when Staging Area is enabled?

已回答

Is it possible to shelve/stash files when I'm working in Staging mode?

I like the staging area mode, but part of the reason I am still using Changelists is because when I need a file for later, I can't find a way to shelve it.

Thanks :)

0

Hello Patrick Clery

There is a "Stash silently" action available.
Please let me know if it helps 

0

@Ruslan, Where does "Stash Silently" get the text it uses for the description of the stashed changes?  It always seems to be the description I've entered for a recent commit (perhaps the last?).  At first, I thought maybe it was using the text currently in the description window (still there from the previous commit), but I just tried overwriting that with a new description.  It still grabbed a full description from some commit.

0

ExTexan "Stash Silently" uses last commit message for the description.

Also you can configure stash message under Git | Uncommited Changes | Stash changes
Please let me know if there are any questions left.

0

Ruslan Kuleshov

Is there a way to override that?  As I said, I tried entering a new commit message, but that didn't seem to work.

That previous commit message hardly ever applies to the changes I'm stashing.  It would be nice to make the message meaningful to make it easier to identify which stash I want to unstash at a later date.

If it's not possible at this time, please let me know where/how to submit that as a feature request.

0

ExTexan Could you please elaborate a bit more on your steps? What version are you running?
You can define a message if you stash changes via dialog under Git | Uncommited Changes | Stash changes.

>where/how to submit that as a feature request.

Please feel free to submit any feature requests/bugs on our YouTrack:
https://youtrack.jetbrains.com/

0

Ruslan Kuleshov, Thanks again for your quick reply.

My steps are... in the Commit pane, click "Stash Silently".

Yes, I realized that I could supply a message via Git | Uncommited Changes | Stash Changes - but that's already 3 clicks (or hovers) to get there, then enter the message and click "Create Stash".  Compared to entering the message and clicking "Stash Silently".  It's a matter of simplicity.

If IDEA can't guarantee that the message it grabs is accurate or meaningful, much better to omit it altogether. It already prepends "WIP on my_branch" to the message anyway.  Seems like that would be better than including a misleading message.

In any case, I'll post my suggestion(s) in YouTrack.  Thanks again.

0

请先登录再写评论。