Fix git_diff to use last commit hash
This commit is contained in:
parent
7aa2ac0433
commit
25413fc9a2
1 changed files with 1 additions and 1 deletions
2
vimrc
2
vimrc
|
@ -424,7 +424,7 @@ function! s:git_diff(...)
|
|||
if exists("b:git_revision_hash")
|
||||
call s:git_diff(get(s:git_history(), index(s:git_history(), b:git_revision_hash)+1, "NIL"))
|
||||
else
|
||||
call s:git_diff("HEAD")
|
||||
call s:git_diff(get(s:git_history(), 1, "HEAD"))
|
||||
end
|
||||
end
|
||||
endfun
|
||||
|
|
Loading…
Reference in a new issue