From 4eae1d03e82c5b775a25c097509562efd350a8a3 Mon Sep 17 00:00:00 2001 From: Fionn Fitzmaurice Date: Thu, 15 Oct 2026 19:02:36 +0000 Subject: [PATCH] runtime(gitrevlist): prevent interpreting keywords as options Problem: gitrevlist's keywordprg "git show" doesn't realise that input should never be interpreted as an option. (Note that it is in practice impossible to pass a value that is interpreted as an option, but this expresses intent and is defensive.) Solution: pass --end-of-options to force input to be interpreted as arguments. related: #20702 closes: #21472 Signed-off-by: Fionn Fitzmaurice Signed-off-by: Christian Brabandt --- runtime/ftplugin/gitrevlist.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/ftplugin/gitrevlist.vim b/runtime/ftplugin/gitrevlist.vim index 6282203556..ba60795864 100644 --- a/runtime/ftplugin/gitrevlist.vim +++ b/runtime/ftplugin/gitrevlist.vim @@ -11,6 +11,6 @@ let b:did_ftplugin = 1 setlocal comments=:# setlocal commentstring=#\ %s -setlocal keywordprg=git\ show +setlocal keywordprg=git\ show\ --end-of-options let b:undo_ftplugin = "setl comments< commentstring< keywordprg<"