# git blame --ignore-rev to accept tree objects

2 messages from 2020-08-04 to 2020-08-04. Participants: Amir Yalon, Junio C Hamano.
Thread: https://gitlist.dev/t/53979

## Amir Yalon, 2020-08-04 07:40

Subject: git blame --ignore-rev to accept tree objects
Message-ID: <9e184f84-9658-4562-88ea-50039b19aea7@www.fastmail.com>
URL: https://gitlist.dev/e/9e184f84-9658-4562-88ea-50039b19aea7%40www.fastmail.com

```
Dear list members,

In the manual entry for blame.ignoreRevsFile in git-config(1) it says “unabbreviated object name”, which misled me into thinking I could specify tree objects rather than commit objects. This got me thinking, how useful it could be, to be able to include detailed instructions how to ignore a particular commit *in its own commit message*. Right now, it is practically impossible to do, because one can’t know the commit object name in advance. However, once the tree object name is known, it’s easy to include in the commit message.

How practical would it be to implement this feature? How bad could it be, if some unrelated commits with the same tree would be skipped unintentionally by git-blame as a result?

Regards,
Amir

```

## Junio C Hamano, 2020-08-04 15:19

Subject: Re: git blame --ignore-rev to accept tree objects
Message-ID: <xmqq4kpitp54.fsf@gitster.c.googlers.com>
URL: https://gitlist.dev/e/xmqq4kpitp54.fsf%40gitster.c.googlers.com
In-Reply-To: <9e184f84-9658-4562-88ea-50039b19aea7@www.fastmail.com>

```
"Amir Yalon" <amiryal-mljwnltxmo@yxejamir.net> writes:

> How practical would it be to implement this feature? How bad could it be, if some unrelated commits with the same tree would be skipped unintentionally by git-blame as a result?

I would say it would be horrible, if the instruction to skip a wrong
commit is baked into the commit object and cannot be corrected
without rewriting history.

```
