Remove --follow from git commands
This commit is contained in:
parent
f57de95ef2
commit
549a0be0b4
1 changed files with 2 additions and 2 deletions
4
vimrc
4
vimrc
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue