Files
Fionn Fitzmaurice 4eae1d03e8 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 <git@fionn.computer>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-10-15 19:03:21 +00:00

17 lines
435 B
VimL

" Vim filetype plugin file
" Language: Git revision list
" Author: Fionn Fitzmaurice (github.com/fionn)
" Maintainer: Fionn Fitzmaurice (github.com/fionn)
" License: Vim & Apache 2.0
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
setlocal comments=:#
setlocal commentstring=#\ %s
setlocal keywordprg=git\ show\ --end-of-options
let b:undo_ftplugin = "setl comments< commentstring< keywordprg<"