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

Re: [PATCH] Fix rename/copy when dealing with temporarily broken pairs.

From
Jon Seymour <jon.seymour@gmail.com>
Date
Jun 13, 2005, 16:24 UTC
Message-ID
<2cfc4032050613092462d3a456@mail.gmail.com>
In-Reply-To
<7vwtp0p6tz.fsf@assigned-by-dhcp.cox.net>
G'day Junio,
On 6/12/05, Junio C Hamano <junkio@cox.net> wrote:
Show 5 quoted lines
> When rename/copy uses a file that was broken by diffcore-break
> as the source, and the broken filepair gets merged back later,
> the output was mislabeled as a rename.  In this case, the source
> file ends up staying in the output, so we should label it as a
> copy instead.

I've got a patch series that renames a file, but the patches generated by your git-format-patch-script fail to rename the file to the new name.

I wondered if this patch might fix it, but it doesn't seem to.
Here's a hunk from the patch:
diff --git a/epoch.c b/traversal.c
similarity index 100%
rename from epoch.c
rename to traversal.c
--- a/epoch.c
+++ b/traversal.c
@@ -14,7 +14,7 @@

 #include "cache.h"
 #include "commit.h"
-#include "epoch.h"
+#include "traversal.h"

 struct fraction {
        BIGNUM numerator;

What tool am I meant to be using to apply the patch? 

I am currently using "patch -p1"

jon.
Previous: Junio C HamanoNext: Petr Baudis
Message 3 of 7 in “read-tree: loosen too strict index requirements”
  1. 5/3 read-tree: loosen too strict index requirementsJunio C Hamano, Jun 11, 2005
  2. Fix rename/copy when dealing with temporarily broken pairs.Junio C Hamano, Jun 12, 2005
  3. Jon SeymourJun 13, 2005
  4. Petr BaudisJun 13, 2005
  5. Junio C HamanoJun 13, 2005
  6. Jon SeymourJun 13, 2005
  7. Add --diff-filter= output restriction to diff-* family.Junio C Hamano, Jun 12, 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.