2 Commits
Author SHA1 Message Date
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
Fionn Fitzmaurice a8d5be9284 patch 9.2.0836: filetype: .git-blame-ignore-revs file is not recognized
Problem:  filetype: .git-blame-ignore-revs file is not recognized
Solution: Detect .git-blame-ignore-revs file as gitrevlist filetype,
          include syntax and filetype plugins (Fionn Fitzmaurice)

A Git revision list is

> a list of object names (i.e. one unabbreviated SHA-1 per line)...,
> comments (#), empty lines, and any leading and trailing whitespace are
> ignored.

(from Git's fsck.skipList documentation).

The default output of git rev-list will match this. It is also suitable
as input to git blame --ignore-revs-file.

This adds filetype detection matching .git-blame-ignore-revs files,
syntax highlighting and basic filetype settings.

closes: #20702

Signed-off-by: Fionn Fitzmaurice <fionn@github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-07-22 19:52:22 +00:00