nvim: autoload/git: Fix the arguments to diff

Not sure how we keep getting this wrong.
This commit is contained in:
Sanchayan Maity 2022-04-02 11:04:13 +05:30
parent 78d986ab26
commit c95289343a

View file

@ -107,7 +107,7 @@ function! git#git_diff_commit() abort
" A line in Git log is of the form commit <SHA>
let line = trim(getline('.'))
let commit = split(line, " ")
execute "Gtabedit | Git diff " . commit[1] . " " . commit[1] . "~1 | only"
execute "Gtabedit | Git diff " . commit[1] . "^ " . commit[1] . "| only"
endfunction
" To be used after running some variation of Git log.