sodapopcan / vim-twiggy

Git branch management for Vim
280 stars 15 forks source link

More stash commands #20

Open okkan opened 5 years ago

okkan commented 5 years ago

This plugin would be awesome with these command shortcuts

git stash list [<options>]
git stash show [<stash>]
git stash drop [-q|--quiet] [<stash>]
git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]
git stash branch <branchname> [<stash>]
git stash [push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]
         [-u|--include-untracked] [-a|--all] [-m|--message <message>]
         [--] [<pathspec>…​]]
git stash clear
git stash create [<message>]
git stash store [-m|--message <message>] [-q|--quiet] <commit>
sodapopcan commented 5 years ago

I have thought of doing this before but I'm not sure about it. A big factor is that it falls outside the scope of branching—the only reason I provide stash and un-stash mappings are because they are required for checkout. I also don't use stashing myself other than quickly to perform an action then immediately pop. When it comes to saving WIP work, I always create a tmp commit. This means that I would be supporting a feature I would never use myself.