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

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

From
Junio C Hamano <junkio@cox.net>
Date
May 29, 2005, 23:51 UTC
Message-ID
<7vpsv9h9qi.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050529215617.GT1036@pasky.ji.cz>
>>>>> "PB" == Petr Baudis <pasky@ucw.cz> writes:

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

PB> Please don't give up on it. :-)

Well, although I do not do Porcelain ;-), I do want to have -O to help my use pattern. I envision that Porcelain noticing the existence of ${GIT-.git}/patch-order file and adding -O to its diff-* argument would make the world a better place.

And I am not giving up on -B yet, but as you can imagine, it has interesting interaction with -M/-C, since rename detection code must be prepared to deal with broken pairs (earlier it did not have to worry about the same path that is a regular file appearing twice in its input). Since I have tested -B only in the context of full set of patches I sent out, and have not tested it with only the subset Linus decided to swallow, I would recommend against applying it on top of the Linus tip as is. I'll be rebasing it to his tip, test it again and then resubmit later. I'll do the same for -O changes.

Previous: Petr Baudis
Message 4 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.