threads / discuss / 53979

git blame --ignore-rev to accept tree objects

Subject: git blame --ignore-rev to accept tree objects

## tl;dr

2 messages between Aug 4, 2020 and Aug 4, 2020.

replies: 1people: 2as markdown or json

Amir Yalon· Aug 4, 2020, 07:40 UTC · lore
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· Aug 4, 2020, 15:19 UTC · re: Amir Yalon · lore

Re: git blame --ignore-rev to accept tree objects

"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.

← back to recent threads