From c95289343a4cb8cf404d848e115a305a53e8ab8c Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sat, 2 Apr 2022 11:04:13 +0530 Subject: [PATCH] nvim: autoload/git: Fix the arguments to diff Not sure how we keep getting this wrong. --- nvim/.config/nvim/autoload/git.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/.config/nvim/autoload/git.vim b/nvim/.config/nvim/autoload/git.vim index c5d545c..395f2f8 100644 --- a/nvim/.config/nvim/autoload/git.vim +++ b/nvim/.config/nvim/autoload/git.vim @@ -107,7 +107,7 @@ function! git#git_diff_commit() abort " A line in Git log is of the form commit 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.