File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -1998,7 +1998,7 @@ function! s:diff()
1998
1998
continue
1999
1999
endif
2000
2000
2001
- let diff = s: system_chomp (' git log --pretty=format:"%h %s (%cr)" "HEAD...HEAD@{1}"' , v .dir )
2001
+ let diff = s: system_chomp (' git log --left-only -- pretty=format:"%h %s (%cr)" "HEAD...HEAD@{1}"' , v .dir )
2002
2002
if ! empty (diff )
2003
2003
call append (1 , ' ' )
2004
2004
call append (2 , ' - ' .k .' :' )
Original file line number Diff line number Diff line change @@ -352,6 +352,24 @@ Execute (Reuse Plug window in another tab):
352
352
q
353
353
unlet tabnr
354
354
355
+ Execute (contd. PlugDiff should not show inverted history):
356
+ " Additional PlugUpdate to clear diff
357
+ PlugUpdate
358
+ PlugDiff
359
+ Log getline(1, '$')
360
+
361
+ " Checking out older revisions
362
+ for repo in values(g:plugs)
363
+ call system(printf('cd %s && git reset HEAD^ --hard', shellescape(repo.dir)))
364
+ endfor
365
+ unlet repo
366
+
367
+ " PlugDiff should not report the changes i.e. git log --left-only
368
+ PlugDiff
369
+ Log getline(1, '$')
370
+ AssertEqual 'No updates.', getline(1)
371
+ q
372
+
355
373
**********************************************************************
356
374
~ On-demand loading / Partial installation/update ~
357
375
**********************************************************************
You can’t perform that action at this time.
0 commit comments