Skip to content

Commit

Permalink
Fix PlugDiff for Windows (junegunn#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
janlazo authored and junegunn committed Sep 20, 2017
1 parent 7f96c98 commit 4f95bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2406,7 +2406,7 @@ function! s:diff()
call s:append_ul(2, origin ? 'Pending updates:' : 'Last update:')
for [k, v] in plugs
let range = origin ? '..origin/'.v.branch : 'HEAD@{1}..'
let diff = s:system_chomp('git log --graph --color=never --pretty=format:"%x01%h%x01%d%x01%s%x01%cr" '.s:shellesc(range), v.dir)
let diff = s:system_chomp('git log --graph --color=never '.join(map(['--pretty=format:"%x01%h%x01%d%x01%s%x01%cr"', range], 's:shellesc(v:val)')), v.dir)
if !empty(diff)
let ref = has_key(v, 'tag') ? (' (tag: '.v.tag.')') : has_key(v, 'commit') ? (' '.v.commit) : ''
call append(5, extend(['', '- '.k.':'.ref], map(s:lines(diff), 's:format_git_log(v:val)')))
Expand Down

0 comments on commit 4f95bce

Please sign in to comment.