All of lore.kernel.org
 help / color / mirror / Atom feed
* Is there something like a blamed diff?
@ 2014-02-15 18:38 David Kastrup
  2014-02-17 10:24 ` Thomas Rast
  0 siblings, 1 reply; 4+ messages in thread
From: David Kastrup @ 2014-02-15 18:38 UTC (permalink / raw)
  To: git


When comparing two branches, decorating the flat diff with the
respectively responsible commits seems like it would be nice to do/have
(the blame on the identical parts, in contrast, is not really
interesting).  Is there any tool that provides something like that?

-- 
David Kastrup

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there something like a blamed diff?
  2014-02-15 18:38 Is there something like a blamed diff? David Kastrup
@ 2014-02-17 10:24 ` Thomas Rast
  2014-02-17 11:02   ` David Kastrup
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Rast @ 2014-02-17 10:24 UTC (permalink / raw)
  To: David Kastrup; +Cc: git

David Kastrup <dak@gnu.org> writes:

> When comparing two branches, decorating the flat diff with the
> respectively responsible commits seems like it would be nice to do/have
> (the blame on the identical parts, in contrast, is not really
> interesting).  Is there any tool that provides something like that?

This seems to come up every year or so:

http://thread.gmane.org/gmane.comp.version-control.git/110369/focus=110383

-- 
Thomas Rast
tr@thomasrast.ch

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there something like a blamed diff?
  2014-02-17 10:24 ` Thomas Rast
@ 2014-02-17 11:02   ` David Kastrup
  2014-02-17 17:41     ` Thomas Rast
  0 siblings, 1 reply; 4+ messages in thread
From: David Kastrup @ 2014-02-17 11:02 UTC (permalink / raw)
  To: Thomas Rast; +Cc: git

Thomas Rast <tr@thomasrast.ch> writes:

> David Kastrup <dak@gnu.org> writes:
>
>> When comparing two branches, decorating the flat diff with the
>> respectively responsible commits seems like it would be nice to do/have
>> (the blame on the identical parts, in contrast, is not really
>> interesting).  Is there any tool that provides something like that?
>
> This seems to come up every year or so:
>
> http://thread.gmane.org/gmane.comp.version-control.git/110369/focus=110383

Nice.  That one could likely be sped up by calling git-blame just once
on each file with multiple -L options.

Though actually with the current implementation of git-blame you are
likely faster for a large number of differences by doing each region
separately anyway since then the cost for digging through the history is
obviously O(n) for n consecutive runs on n chunks while the
administrative overhead for several chunks in a single run is O(n^2) at
the moment.

-- 
David Kastrup

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there something like a blamed diff?
  2014-02-17 11:02   ` David Kastrup
@ 2014-02-17 17:41     ` Thomas Rast
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Rast @ 2014-02-17 17:41 UTC (permalink / raw)
  To: David Kastrup; +Cc: git

David Kastrup <dak@gnu.org> writes:

> Thomas Rast <tr@thomasrast.ch> writes:
>
>> David Kastrup <dak@gnu.org> writes:
>>
>>> When comparing two branches, decorating the flat diff with the
>>> respectively responsible commits seems like it would be nice to do/have
>>> (the blame on the identical parts, in contrast, is not really
>>> interesting).  Is there any tool that provides something like that?
>>
>> This seems to come up every year or so:
>>
>> http://thread.gmane.org/gmane.comp.version-control.git/110369/focus=110383
>
> Nice.  That one could likely be sped up by calling git-blame just once
> on each file with multiple -L options.

Yes.  You'll note that the email predates the support for multiple -L
options by a few years :-)

I never had a need for such a script, I just wrote that in response to
someone asking about it.  If you find it useful, please clean it up for
inclusion in contrib/.

-- 
Thomas Rast
tr@thomasrast.ch

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-17 17:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-15 18:38 Is there something like a blamed diff? David Kastrup
2014-02-17 10:24 ` Thomas Rast
2014-02-17 11:02   ` David Kastrup
2014-02-17 17:41     ` Thomas Rast

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.