mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-07 09:34:25 +08:00
Fix #362 - Do not show future changes in PlugDiff
This commit is contained in:
2
plug.vim
2
plug.vim
@@ -1998,7 +1998,7 @@ function! s:diff()
|
||||
continue
|
||||
endif
|
||||
|
||||
let diff = s:system_chomp('git log --pretty=format:"%h %s (%cr)" "HEAD...HEAD@{1}"', v.dir)
|
||||
let diff = s:system_chomp('git log --left-only --pretty=format:"%h %s (%cr)" "HEAD...HEAD@{1}"', v.dir)
|
||||
if !empty(diff)
|
||||
call append(1, '')
|
||||
call append(2, '- '.k.':')
|
||||
|
||||
Reference in New Issue
Block a user