Files
zeertzjqandFionn Fitzmaurice a411dc2388 vim-patch:4eae1d0: runtime(gitrevlist): prevent interpreting keywords as options (#42403)
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: vim/vim#20702
closes:  vim/vim#21472

https://github.com/vim/vim/commit/4eae1d03e82c5b775a25c097509562efd350a8a3

Co-authored-by: Fionn Fitzmaurice <git@fionn.computer>
2026-10-17 07:02:40 +08: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<"