From 23a5880f170c7d90e05f0351e0fa858086fb9779 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 2 Mar 2019 09:36:48 -0600 Subject: [PATCH] .vim: vim-plug @d1c19a6 --- .vim/autoload/plug.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.vim/autoload/plug.vim b/.vim/autoload/plug.vim index db1f615..4e05630 100644 --- a/.vim/autoload/plug.vim +++ b/.vim/autoload/plug.vim @@ -2420,7 +2420,11 @@ 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 '.join(map(['--pretty=format:%x01%h%x01%d%x01%s%x01%cr', range], 's:shellesc(v:val)')), v.dir) + let cmd = 'git log --graph --color=never '.join(map(['--pretty=format:%x01%h%x01%d%x01%s%x01%cr', range], 's:shellesc(v:val)')) + if has_key(v, 'rtp') + let cmd .= ' -- '.s:shellesc(v.rtp) + endif + let diff = s:system_chomp(cmd, 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)'))) -- 2.45.2