parent
419f1ee910
commit
dff9b92cde
@ -882,9 +882,6 @@ function! s:StageToggle(lnum1,lnum2) abort
|
|||||||
if filename ==# ''
|
if filename ==# ''
|
||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
if !exists('first_filename')
|
|
||||||
let first_filename = filename
|
|
||||||
endif
|
|
||||||
execute lnum
|
execute lnum
|
||||||
if filename =~ ' -> '
|
if filename =~ ' -> '
|
||||||
let cmd = ['mv','--'] + reverse(split(filename,' -> '))
|
let cmd = ['mv','--'] + reverse(split(filename,' -> '))
|
||||||
@ -898,6 +895,9 @@ function! s:StageToggle(lnum1,lnum2) abort
|
|||||||
else
|
else
|
||||||
let cmd = ['add','-A','--',filename]
|
let cmd = ['add','-A','--',filename]
|
||||||
endif
|
endif
|
||||||
|
if !exists('first_filename')
|
||||||
|
let first_filename = filename
|
||||||
|
endif
|
||||||
let output .= call(repo.git_chomp_in_tree,cmd,s:repo())."\n"
|
let output .= call(repo.git_chomp_in_tree,cmd,s:repo())."\n"
|
||||||
endfor
|
endfor
|
||||||
if exists('first_filename')
|
if exists('first_filename')
|
||||||
|
Loading…
Reference in New Issue
Block a user