This is a Neovim plugin for applying "fast git fixups"(using UI) to the current development branch.
Under the hood git commit --fixup
and git rebase -i --autosquash --autostash
are used, see git manual for the more information.
Add plugin to the runtime path
Plug 'dm1try/git_fastfix'
load lua module and map git_fastfix.open()
lua git_fastfix = require('git_fastfix')
nn <silent> <leader>gf :lua git_fastfix.open()<cr>
Open git_fastfix
wizard window(:lua git_fastfix.open()
).
Chooze git hunks for the patch.
To fixup and rebase the changes press <CR>
in the window with git logs.
To fixup only use <leader><CR>
.
Install neovim from source. Run the tests from neovim source directory. Example:
cd ~/projects/neovim
TEST_FILE=~/projects/git_fastfix/spec/git_fastfix_spec.lua make functionaltest