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

Re: blame now knows -S

From
Fredrik Kuivinen <freku045@student.liu.se>
Date
Apr 8, 2006, 11:42 UTC
Message-ID
<20060408114240.GA10137@c165.ib.student.liu.se>
In-Reply-To
<7v1ww9loon.fsf@assigned-by-dhcp.cox.net>
On Fri, Apr 07, 2006 at 02:28:40AM -0700, Junio C Hamano wrote:
Show 10 quoted lines
> I've made a few changes to "git blame" myself:
> 
>  - fix breakage caused by recent revision walker reorganization;
>  - use built-in xdiff instead of spawning GNU diff;
>  - implement -S <ancestry-file> like annotate does.
> 
> Depending on the density of changes, it now appears that blame
> is 10%-30% faster than annotate.  I thought CVS emulator might
> be interested to give it a whirl..
> 
Nice work!

There is another possible optimisation with respect to xdiff. Instead of producing the diff on the xdiff side and parsing the diff in blame.c, we could add another call back which just gets the relevant information from the hunk header. I don't know how much we would gain from this, but it might be worth a try.

- Fredrik
Previous: Junio C HamanoNext: Marco Costalba
Message 3 of 5 in “blame now knows -S”
  1. Junio C HamanoApr 7, 2006
  2. Junio C HamanoApr 7, 2006
  3. Fredrik KuivinenApr 8, 2006
  4. Marco CostalbaApr 8, 2006
  5. Junio C HamanoApr 8, 2006

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.