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

Re: [PATCH 1/2] Add a basic idea section for git-blame.

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 8, 2010, 16:51 UTC
Message-ID
<7v8w8x7ura.fsf@alter.siamese.dyndns.org>
In-Reply-To
<201004081827.22706.trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> writes:
> "Horrifying" seems a fairly harsh word for another way to describe the
> process *in linear history* and with default settings, doesn't it?

No, even in a linear setting, if you start from "We discard "-" and take blame for +", you can never get to -M/-C.

Suppose you had "a/b/c/" in the parent and "1/b/c/2/a/3/4/a/5/" in the child ("/" stands for LF). Your "b/c/" would match and you say "I added 1/, 2/a/3/4/a/5/". How would you fix that so that you can say that "a/" after "2/" was actually moved from the first line, and possibly the second "a/" was also copied from the same line, if you discard all "-"?

You can say "in linear history and no -M nor -C, you could annotate things this way", but then you are not describing "blame" anymore; you are describing something else that may work very well in much simpler setting and it might even be how some other SCMs would do it.

But it _is_ horrifying to see that in a section that begins with "blame works as follows".

Previous: Thomas RastNext: Bo Yang
Message 6 of 7 in “Document update for 'git-blame' '-M' and '-C' option”
  1. 0/2 Document update for 'git-blame' '-M' and '-C' optionBo Yang, Apr 8, 2010
  2. 1/2 Add a basic idea section for git-blame.Bo Yang, Apr 8, 2010
  3. 2/2 Change the description of '-M' and '-C' option.Bo Yang, Apr 8, 2010
  4. Junio C HamanoApr 8, 2010
  5. Thomas RastApr 8, 2010
  6. Junio C HamanoApr 8, 2010
  7. Bo YangApr 9, 2010

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.