Sublime Forum

Add an Option to apply a stash

#1

I regularly use stashes as a way to tinker around in my working copy with the option to just roll back by using stashes.
It would be really neat if I could do so in Sublime Merge and didn’t have to switch back to the cli to do so.

I really like Sublime Merge already and it could very well become my daily driver once the initial bugs are sorted out.
Keep the work up; you are doing a fantastic job! :smiley:

1 Like

#2

right click on the stash in the commit list on the left and Pop Stash

0 Likes

#3

Popping the Stash applies and then removes it. I want to apply an then keep it like in
git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]
(See: https://git-scm.com/docs/git-stash)

2 Likes

#4

Agree, the stash functionality needs some extensions, which should be available via the header split-buttons in the style of the pull/push buttons.

You could create a Packages/User/Default.sublime-commands and add

    {
        "caption": "Apply Stash\tgit stash apply",
        "command": "git",
        "args": { "argv": ["stash", "apply"], }
    },

You’d have the command available in the command pallet as a result.

3 Likes