Remove --follow from git commands

This commit is contained in:
Talia 2018-04-12 10:27:49 +02:00
parent f57de95ef2
commit 549a0be0b4

4
vimrc
View file

@ -311,7 +311,7 @@ function! s:git_history()
else else
let l:fname = expand("%") let l:fname = expand("%")
end end
let l:commits = system('git log --format="%h" --follow '.l:fname) let l:commits = system('git log --format="%h" '.l:fname)
let l:hist = split(l:commits, "\n") let l:hist = split(l:commits, "\n")
let b:git_history = [localtime(), l:hist] let b:git_history = [localtime(), l:hist]
@ -324,7 +324,7 @@ function! s:git_first()
return return
end end
let l:history = s:git_history() let l:history = s:git_history()
call s:file_at_revision(get(l:history, -1, "HEAD")) call s:file_at_revision(get(l:history, -1))
endfun endfun
function! s:git_last() function! s:git_last()