Skip to content

dm1try/git_fastfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

fast git fixups using neovim UI

Resources

Stars

Watchers

Forks

Packages

No packages published