Skip to content

tennashi/gitpatch.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitpatch.vim

Add the selected range to the index.

Powered by denops.vim

Install

Plug 'vim-denops/denops.vim'
Plug 'tennashi/gitpatch.vim'
call dein#add('vim-denops/denops.vim')
call dein#add('tennashi/gitpatch.vim')
$ volt get vim-denops/denops.vim
$ volt get tennashi/gitpatch.vim

Commands

Command Description
:GitpatchAdd Add the selected range to the index. If you do not select a range, the entire file will be added to the index.
:GitpatchRestore Undo changes to the working tree of the selected range. If you do not select a range, changes to the entire file will be undone.
:GitpatchStash Stash changes to the working tree of the selected range. If you do not select a range, changes to the entire file will be stashed.

Restriction: Apply only to hunk that is completely contained in the selected range. I'm still considering how to apply hunk, which is only partially included.

License

MIT

About

Add the selected range to the index

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published