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

Re: [PATCH v6 4/6] blame: add config options to handle output for ignored lines

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 14, 2019, 10:24 UTC
Message-ID
<xmqqbm18x4tt.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAJDYR9S8XFH=JnQX8WcfgOZ7cr+X6kk45k9g8t3u5aP5wwdu0Q@mail.gmail.com>
Michael Platings <michael@platin.gs> writes:
> If you only enable blame.markIgnoredLines then the hash for
> "unblamable" lines appears as e.g. "*3252488f5" - this doesn't seem
> right to me because the commit *wasn't* ignored,

I think you misunderstood me. I was merely suggesting to use the approach to mark the line in a way other than using the NULLed out object name that has been reserved for something totally different, and hinting with "the same *idea*".

And that idea is not even original to this series; the "^" marker that is used to say "the line is attributed to this commit, but that may only be because you blamed with commit range A..B and we reached the bottom of the range---if you dug further, you might find the line originates from another commit" is the origin of the same idea, and this topic borrows it and uses a different mark, i.e. '*', for the "we are not certain---take this with grain of salt" mark.

If you ended up hitting the commit the user wanted to ignore, perhaps you can find another character that is different from '^' or '*' and use that, following the same idea.

That is what I meant. So you shouldn't be worried about using the same '*' making the result ambiguous.

By the way, a configuration only feature is something we usually do not accept. A feature must be guarded with --command-line-option and then optionally can have a corresponding configuration once the option proves to be useful enough that it becomes useful to be able to say "in this repository (or to this user), the feature is on by default".

Previous: Michael PlatingsNext: Michael Platings
Message 14 of 25 in “blame: add the ability to ignore commits”
  1. 0/6 blame: add the ability to ignore commitsBarret Rhoden, Apr 10, 2019
  2. 1/6 Move init_skiplist() outside of fsckBarret Rhoden, Apr 10, 2019
  3. Ævar Arnfjörð BjarmasonApr 10, 2019
  4. Barret RhodenApr 15, 2019
  5. 2/6 blame: use a helper function in blame_chunk()Barret Rhoden, Apr 10, 2019
  6. 3/6 blame: add the ability to ignore commits and their changesBarret Rhoden, Apr 10, 2019
  7. Ævar Arnfjörð BjarmasonApr 10, 2019
  8. Michael PlatingsApr 14, 2019
  9. Barret RhodenApr 15, 2019
  10. Barret RhodenApr 15, 2019
  11. 4/6 blame: add config options to handle output for ignored linesBarret Rhoden, Apr 10, 2019
  12. Junio C HamanoApr 14, 2019
  13. Michael PlatingsApr 14, 2019
  14. Junio C HamanoApr 14, 2019
  15. Michael PlatingsApr 14, 2019
  16. Barret RhodenApr 15, 2019
  17. 5/6 blame: optionally track line fingerprints during fill_blame_origin()Barret Rhoden, Apr 10, 2019
  18. 6/6 blame: use a fingerprint heuristic to match ignored linesBarret Rhoden, Apr 10, 2019
  19. Junio C HamanoApr 14, 2019
  20. Michael PlatingsApr 14, 2019
  21. Barret RhodenApr 15, 2019
  22. Junio C HamanoApr 16, 2019
  23. Michael PlatingsApr 14, 2019
  24. Barret RhodenApr 15, 2019
  25. Michael PlatingsApr 15, 2019

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.