git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git blame --ignore-rev to accept tree objects

From
AYAmir Yalon <amiryal-mljwnltxmo@yxejamir.net>
Date
Aug 4, 2020, 07:40 UTC
Message-ID
<9e184f84-9658-4562-88ea-50039b19aea7@www.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

Next: Junio C Hamano
Message 1 of 2 in “git blame --ignore-rev to accept tree objects”
  1. Amir YalonAug 4, 2020
  2. Junio C HamanoAug 4, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.