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

blame -L questions

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 9, 2010, 03:03 UTC
Message-ID
<76718491002081903s2e37875bs85eeb55779167ce7@mail.gmail.com>
Junio,

I'd like git blame to be able to emit multiple blocks when using it with -L /start/,/end/.

My use case is emitting blocks that are wrapped in

#if defined(WHATEVER) .... #endif

I was going to use the syntax -L /start/../end/ for this.

I naively thought I might just be able to setup multiple blame_entry's linked through the next/prev pointers at the start, but that clearly does not work.

So I was wondering if you could give me any tips about how the scoreboard, blame_entry, and origin all fit together before I injure myself. :-)

Thanks,
j.
Next: Junio C Hamano
Message 1 of 2 in “blame -L questions”
  1. Jay SoffianFeb 9, 2010
  2. Junio C HamanoFeb 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.