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

Re: [PATCH] Add -B flag to diff-* brothers.

From
Petr Baudis <pasky@ucw.cz>
Date
May 29, 2005, 21:56 UTC
Message-ID
<20050529215617.GT1036@pasky.ji.cz>
In-Reply-To
<7vbr6vrvqf.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Sat, May 28, 2005 at 09:33:44PM CEST, I got a letter where Junio C Hamano <junkio@cox.net> told me that...

Show 14 quoted lines
> This introduces diffcore-break.c, a new diffcore
> transformation.
> 
> When the -B flag is given, a patch that represents a complete
> rewrite is broken into a deletion followed by a creation.  This
> makes it easier to review such a complete rewrite patch.
> 
> The -B flag takes the same syntax as the -M and -C flags to
> specify the maximum amount of source material the resulting file
> can still have to be considered a complete rewrite, and defaults
> to 15% if not specified.  For example, this detects the complete
> rewrite of ls-tree.c I sent earlier.
> 
> Signed-off-by: Junio C Hamano <junkio@cox.net>

Actually, I like this one - contrary to -O I can see how this could be quite useful - I have wished for this many times when people would send me some "complete rewrite" patches which I actually wanted to review.

Please don't give up on it. :-)
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “Add -B flag to diff-* brothers.”
  1. Add -B flag to diff-* brothers.Junio C Hamano, May 28, 2005
  2. diff: move diffcore-break before diffcore-rename.Junio C Hamano, May 29, 2005
  3. Petr BaudisMay 29, 2005
  4. Junio C HamanoMay 29, 2005

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.