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

Re: [RFC] use typechange as rename source

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 30, 2007, 01:10 UTC
Message-ID
<7vmyswsfl6.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071129141452.GA32670@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> OK. What next? Did the patch I sent make sense? Do you want a cleaned up
> version with a commit message and signoff, or does it need work?

It just hit me that breaking (as in diffcore-break) a filepair that is a typechange may yield the same result, and if it works, that would be conceptually cleaner. After all, a typechange is the ultimate form of total rewriting (the similarity between the preimage and the postimage is very low -- even their types are different, let alone contents).

Compared to that, the rename_used++ in that codepath you touched feels more magic to me.

Previous: Jeff KingNext: Jeff King
Message 4 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.