parent
3b5f715262
commit
f096152a48
@ -717,11 +717,11 @@ function! s:stage_info(lnum) abort
|
|||||||
endwhile
|
endwhile
|
||||||
if !lnum
|
if !lnum
|
||||||
return ['', '']
|
return ['', '']
|
||||||
elseif getline(lnum+1) =~# '^# .*"git \%(reset\|rm --cached\) ' || getline(lnum) ==# '# Changes to be committed:'
|
elseif getline(lnum+1) =~# '^# .*\<git \%(reset\|rm --cached\) ' || getline(lnum) ==# '# Changes to be committed:'
|
||||||
return [matchstr(filename, colon.' *\zs.*'), 'staged']
|
return [matchstr(filename, colon.' *\zs.*'), 'staged']
|
||||||
elseif getline(lnum+2) =~# '^# .*"git checkout ' || getline(lnum) ==# '# Changes not staged for commit:'
|
elseif getline(lnum+2) =~# '^# .*\<git checkout ' || getline(lnum) ==# '# Changes not staged for commit:'
|
||||||
return [matchstr(filename, colon.' *\zs.*'), 'unstaged']
|
return [matchstr(filename, colon.' *\zs.*'), 'unstaged']
|
||||||
elseif getline(lnum+1) =~# '^# .*"git add/rm ' || getline(lnum) ==# '# Unmerged paths:'
|
elseif getline(lnum+1) =~# '^# .*\<git add/rm ' || getline(lnum) ==# '# Unmerged paths:'
|
||||||
return [matchstr(filename, colon.' *\zs.*'), 'unmerged']
|
return [matchstr(filename, colon.' *\zs.*'), 'unmerged']
|
||||||
else
|
else
|
||||||
return [filename, 'untracked']
|
return [filename, 'untracked']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user