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

Re: Understanding behavior of git blame -M

From
Duy Nguyen <pclouds@gmail.com>
Date
Aug 16, 2014, 00:06 UTC
Message-ID
<CACsJy8DhfUY7uL91UGZUbC4g7WsMKkmj+7BF3xZ9RZyf8NcB4g@mail.gmail.com>
In-Reply-To
<874mxderwj.fsf@fencepost.gnu.org>
On Fri, Aug 15, 2014 at 9:42 PM, David Kastrup <dak@gnu.org> wrote:
Show 9 quoted lines
> The function diff_hunks is a wrapper for the diff engine.  Putting the
> context length explicitly into this wrapper (rather than not passing an
> argument and just setting the context length to zero anyway in the
> function) clearly indicates that somebody _wanted_ it called with
> different values.
>
> There is no documentation or rationale in the file _why_ as far as
> I remember.  Maybe it can crash or end up in an infinite loop.  Maybe it
> could do so at one point of time but no longer does.

Not sure if it helps, but ctxlen = 1 seems to be added back in d24bba8 (git-pickaxe -M: blame line movements within a file. - 2006-10-19), if I track the changes correctly.

-- 
Duy
Previous: David KastrupNext: Junio C Hamano
Message 5 of 8 in “Understanding behavior of git blame -M”
  1. Sokolov, Konstantin (ext)Aug 15, 2014
  2. David KastrupAug 15, 2014
  3. AW: Understanding behavior of git blame -MSokolov, Konstantin (ext), Aug 15, 2014
  4. David KastrupAug 16, 2014
  5. Duy NguyenAug 16, 2014
  6. Junio C HamanoAug 15, 2014
  7. AW: Understanding behavior of git blame -MSokolov, Konstantin (ext), Aug 15, 2014
  8. Sokolov, Konstantin (ext)Aug 18, 2014

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.