threads / discuss / 63353

Feature request: automatically read .git-blame-ignore-revs or allow global optional config

Subject: Feature request: automatically read .git-blame-ignore-revs or allow global optional config

## tl;dr

4 messages between Apr 25, 2025 and May 1, 2025.

replies: 3people: 3as markdown or json

Michael Grosser· Apr 25, 2025, 18:41 UTC · lore
I have many repos where I use .git-blame-ignore-revs,
but I cannot set it globally because then I get
```
fatal: could not open object name list: .git-blame-ignore-revs
```
so please make it either the default for `git blame` to check that file,
or add a "blame: ignoreMissingFile: true" option so I an set
```
[blame]
  ignoreRevsFile = .git-blame-ignore-revs
  ignoreMissingFile: true
```
and can use this feature without constantly having to think about it
Eric Sunshine· Apr 25, 2025, 19:54 UTC · re: Michael Grosser · lore

Re: Feature request: automatically read .git-blame-ignore-revs or allow global optional config

On Fri, Apr 25, 2025 at 2:42 PM Michael Grosser <grosser.michael@gmail.com> wrote:>

Show 13 quoted lines
> I have many repos where I use .git-blame-ignore-revs,
> but I cannot set it globally because then I get
> ```
> fatal: could not open object name list: .git-blame-ignore-revs
> ```
> so please make it either the default for `git blame` to check that file,
> or add a "blame: ignoreMissingFile: true" option so I an set
> ```
> [blame]
>   ignoreRevsFile = .git-blame-ignore-revs
>   ignoreMissingFile: true
> ```
> and can use this feature without constantly having to think about it

Relevant threads: https://lore.kernel.org/git/pull.1947.git.git.1745088194384.gitgitgadget@gmail.com/T/#u https://lore.kernel.org/git/20241014204427.1712182-1-gitster@pobox.com/T/#u

D. Ben Knoble· May 1, 2025, 18:00 UTC · re: Eric Sunshine · lore

Re: Feature request: automatically read .git-blame-ignore-revs or allow global optional config

On Fri, Apr 25, 2025 at 3:55 PM Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 20 quoted lines
>
> On Fri, Apr 25, 2025 at 2:42 PM Michael Grosser
> <grosser.michael@gmail.com> wrote:>
> > I have many repos where I use .git-blame-ignore-revs,
> > but I cannot set it globally because then I get
> > ```
> > fatal: could not open object name list: .git-blame-ignore-revs
> > ```
> > so please make it either the default for `git blame` to check that file,
> > or add a "blame: ignoreMissingFile: true" option so I an set
> > ```
> > [blame]
> >   ignoreRevsFile = .git-blame-ignore-revs
> >   ignoreMissingFile: true
> > ```
> > and can use this feature without constantly having to think about it
>
> Relevant threads:
> https://lore.kernel.org/git/pull.1947.git.git.1745088194384.gitgitgadget@gmail.com/T/#u
> https://lore.kernel.org/git/20241014204427.1712182-1-gitster@pobox.com/T/#u

Did that second set of patches ever go anywhere? It seems similar to what Junio proposed in the first linked thread and possibly worth resurrecting. (A log --grep :(optional) didn't find anything.)

-- 
D. Ben Knoble
Eric Sunshine· May 1, 2025, 18:28 UTC · re: D. Ben Knoble · lore

Re: Feature request: automatically read .git-blame-ignore-revs or allow global optional config

On Thu, May 1, 2025 at 2:00 PM D. Ben Knoble <ben.knoble@gmail.com> wrote:
Show 13 quoted lines
> On Fri, Apr 25, 2025 at 3:55 PM Eric Sunshine <sunshine@sunshineco.com> wrote:
> > On Fri, Apr 25, 2025 at 2:42 PM Michael Grosser
> > <grosser.michael@gmail.com> wrote:>
> > > so please make it either the default for `git blame` to check that file,
> > > or add a "blame: ignoreMissingFile: true" option so I an set
> >
> > Relevant threads:
> > https://lore.kernel.org/git/pull.1947.git.git.1745088194384.gitgitgadget@gmail.com/T/#u
> > https://lore.kernel.org/git/20241014204427.1712182-1-gitster@pobox.com/T/#u
>
> Did that second set of patches ever go anywhere? It seems similar to
> what Junio proposed in the first linked thread and possibly worth
> resurrecting. (A log --grep :(optional) didn't find anything.)

The patches Junio submitted[1] did not go anywhere. The topic sat in his tree for several "What's Cooking" reports and then he dropped it because it received no response from reviewers[2]. I agree that it could be a useful enhancement if resurrected.

[1]: https://lore.kernel.org/git/20241014204427.1712182-1-gitster@pobox.com/T/#u [2]: https://lore.kernel.org/git/CAPig+cT1BNXRotrz=rnVgvhQjZZwYgsAOQMonHFFTPfK-C0LOQ@mail.gmail.com/

← back to recent threads