mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 22:33:51 -05:00
Match "* Unmerged path" in mergetool
This happens in leiu of a diff when one of the commits adds (or presumably removes) the file rather than changing it.
This commit is contained in:
@@ -3861,6 +3861,9 @@ function! s:ToolParse(state, line) abort
|
|||||||
let offsets = split(matchstr(a:line, '^@\+ \zs[-+0-9, ]\+\ze @'), ' ')
|
let offsets = split(matchstr(a:line, '^@\+ \zs[-+0-9, ]\+\ze @'), ' ')
|
||||||
return s:ToolItems(a:state, a:state.from, a:state.to, offsets, matchstr(a:line, ' @@\+ \zs.*'))
|
return s:ToolItems(a:state, a:state.from, a:state.to, offsets, matchstr(a:line, ' @@\+ \zs.*'))
|
||||||
endif
|
endif
|
||||||
|
elseif a:line =~# '^\* Unmerged path .'
|
||||||
|
let file = a:line[16:-1]
|
||||||
|
return s:ToolItems(a:state, file, file, [], '')
|
||||||
elseif a:line =~# '^[A-Z]\d*\t.\|^:.*\t.'
|
elseif a:line =~# '^[A-Z]\d*\t.\|^:.*\t.'
|
||||||
" --raw, --name-status
|
" --raw, --name-status
|
||||||
let [status; files] = split(a:line, "\t")
|
let [status; files] = split(a:line, "\t")
|
||||||
|
|||||||
Reference in New Issue
Block a user