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

Re: git apply vs. renamed files index mismatch

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 9, 2008, 00:55 UTC
Message-ID
<7vabeicf3g.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080908215441.GA924@oksana.dev.rtsoft.ru>
Anton Vorontsov <avorontsov@ru.mvista.com> writes:
> ..rename and changes ideally go in separate patches.
>
> IIRC this also helps git to track renames (it can easily compare
> hashes instead of guessing).

It does not help much, and it is frowned upon (at least by well educated users in git circle) because such a split patch hurts reviewability.

Previous: Anton VorontsovNext: Geert Uytterhoeven
Message 4 of 11 in “git apply vs. renamed files index mismatch (was: Re: [PATCH 1/4] POWERPC: Rename dma_64.c to dma.c)”
  1. Anton VorontsovSep 8, 2008
  2. Scott WoodSep 8, 2008
  3. Anton VorontsovSep 8, 2008
  4. Junio C HamanoSep 9, 2008
  5. Geert UytterhoevenSep 9, 2008
  6. Christoph HellwigSep 8, 2008
  7. Junio C HamanoSep 9, 2008
  8. Anton VorontsovSep 9, 2008
  9. Junio C HamanoSep 9, 2008
  10. Anton VorontsovSep 9, 2008
  11. Junio C HamanoSep 10, 2008

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.