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

Re: [RFC] use typechange as rename source

From
Jeff King <peff@peff.net>
Date
Dec 1, 2007, 06:49 UTC
Message-ID
<20071201064916.GA7431@coredump.intra.peff.net>
In-Reply-To
<7vy7ce6hyb.fsf@gitster.siamese.dyndns.org>
On Fri, Nov 30, 2007 at 10:35:08PM -0800, Junio C Hamano wrote:
Show 6 quoted lines
> Sorry for the earlier broken one.  Here is the correct one I wanted to
> send out.
>
> By the way, this breaks some tests in t4008 (break-rewrite test) because
> the test expects the behaviour you found counterintuitive (which was the
> reason we have this thread).

OK, this looks reasonable to me, and it produces diff results (with -B) that make sense for typechanges. Looking at the failing test in t4008, I like the new behavior better.

And maybe something like this on top for git-status?
diff --git a/wt-status.c b/wt-status.c
index 0e0439f..e77120d 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -250,6 +250,7 @@ static void wt_status_print_updated(struct wt_status *s)
 	rev.diffopt.format_callback_data = s;
 	rev.diffopt.detect_rename = 1;
 	rev.diffopt.rename_limit = 100;
+	rev.diffopt.break_opt = 0;
 	wt_read_cache(s);
 	run_diff_index(&rev, 1);
 }
Previous: Junio C HamanoNext: Junio C Hamano
Message 12 of 14 in “[RFC] use typechange as rename source”
  1. Jeff KingNov 21, 2007
  2. Junio C HamanoNov 29, 2007
  3. Jeff KingNov 29, 2007
  4. Junio C HamanoNov 30, 2007
  5. Jeff KingNov 30, 2007
  6. Junio C HamanoDec 1, 2007
  7. Jeff KingDec 1, 2007
  8. Junio C HamanoDec 1, 2007
  9. Junio C HamanoDec 1, 2007
  10. Jeff KingDec 1, 2007
  11. Junio C HamanoDec 1, 2007
  12. Jeff KingDec 1, 2007
  13. Junio C HamanoDec 2, 2007
  14. Jeff KingDec 3, 2007

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.