mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Pass correct files to git reset --patch
This commit is contained in:
@@ -973,7 +973,7 @@ function! s:StagePatch(lnum1,lnum2) abort
|
|||||||
execute "Git add --patch -- ".join(map(add,'s:shellesc(v:val)'))
|
execute "Git add --patch -- ".join(map(add,'s:shellesc(v:val)'))
|
||||||
endif
|
endif
|
||||||
if !empty(reset)
|
if !empty(reset)
|
||||||
execute "Git reset --patch -- ".join(map(add,'s:shellesc(v:val)'))
|
execute "Git reset --patch -- ".join(map(reset,'s:shellesc(v:val)'))
|
||||||
endif
|
endif
|
||||||
if exists('first_filename')
|
if exists('first_filename')
|
||||||
silent! edit!
|
silent! edit!
|
||||||
|
|||||||
Reference in New Issue
Block a user