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

Re: [ANN] git-tbdiff: topic branch diff

From
Junio C Hamano <gitster@pobox.com>
Date
May 11, 2013, 19:01 UTC
Message-ID
<7vsj1twdcc.fsf@alter.siamese.dyndns.org>
In-Reply-To
<87ip2pfs19.fsf@linux-k42r.v.cablecom.net>
Thomas Rast <trast@inf.ethz.ch> writes:
> In this case the matching up is trivial, but you can see that it clearly
> shows the added Signoffs and edited parts of message and patch.
>
> Have fun, and let me know if it breaks!
Nice.

I need to do this kind of comparison quite often, when a rerolled series is received. Since there is no reason to re_base_ the series with with an updated one on a different fork-point, I tend to do:

	$ git checkout master...tr/topic
        $ git am -s3c ./+tr-topic-2.mbox
	... inspect the differences between tr/topic and HEAD ...
        $ git branch -f tr/topic

where the first step finds the bottom boundary of the previous iteration and detaches the HEAD at the commit, the second step applies the rerolled series and the topic branch is updated in the final step.

The "inspect the differences" step can be helped if I can use this tool to say

	$ git tbdiff master..tr/topic master..HEAD

It would probably be trivial to extend the command line parser to also accept

	$ git tbdiff tr/topic...
but that is an icing on the cake.
Previous: Thomas Rast
Message 3 of 3 in “[ANN] git-tbdiff: topic branch diff”
  1. Thomas RastMay 11, 2013
  2. Thomas RastMay 11, 2013
  3. Junio C HamanoMay 11, 2013

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.