dblume commited on 2023-06-16 22:14:28
Showing 1 changed files, with 3 additions and 0 deletions.
... | ... |
@@ -231,6 +231,9 @@ command Diff :call GitDiff() |
231 | 231 |
|
232 | 232 |
function! GitLog() |
233 | 233 |
let l:fname = expand('%') |
234 |
+ if stridx(l:fname, ' -- ') != -1 |
|
235 |
+ let l:fname = split(l:fname, ' -- ')[-1] |
|
236 |
+ endif |
|
234 | 237 |
exec 'tabnew | r! git log1 -- ' . shellescape(l:fname) |
235 | 238 |
setl buftype=nofile |
236 | 239 |
0d_ |
237 | 240 |