Visitar URL original
runtime(gitrevlist): prevent interpreting keywords as options by fionn · Pull Request #21472 · vim/vim · GitHub
Skip to content

runtime(gitrevlist): prevent interpreting keywords as options - #21472

Open
fionn wants to merge 1 commit into
vim:masterfrom
fionn:gitrevlist-end-of-options
Open

fionn wants to merge 1 commit into
vim:masterfrom
fionn:gitrevlist-end-of-options

Conversation

@fionn

@fionn fionn commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

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

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#20702
Signed-off-by: Fionn Fitzmaurice <git@fionn.computer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant