Skip to content

Commit

Permalink
Fix :Gstatus dd on unmerged path
Browse files Browse the repository at this point in the history
Closes #240.
  • Loading branch information
tpope committed Aug 15, 2012
1 parent 0abe1fb commit a0c71a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/fugitive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,8 @@ function! s:stage_info(lnum) abort
return [matchstr(filename, ': *\zs.*'), 'staged']
elseif getline(lnum+2) =~# '^# .*"git checkout ' || getline(lnum) ==# '# Changes not staged for commit:'
return [matchstr(filename, ': *\zs.*'), 'unstaged']
elseif getline(lnum+1) =~# '^# .*"git add/rm ' || getline(lnum) ==# '# Unmerged paths:'
return [matchstr(filename, ': *\zs.*'), 'unmerged']
else
return [filename, 'untracked']
endif
Expand Down

0 comments on commit a0c71a6

Please sign in to comment.