Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 995 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 995 Bytes

Git FastFix

This is a Neovim plugin for applying "fast git fixups"(using UI) to the current development branch.

demo

Under the hood git commit --fixup and git rebase -i --autosquash --autostash are used, see git manual for the more information.

Installation

Add plugin to the runtime path

Vim-Plug

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>

Usage

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>.

Development

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