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

Re: [question] retrieve some patches from another repository

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 20, 2010, 06:23 UTC
Message-ID
<7vljft5m7h.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100120054614.GA1965@crane-desktop>
Crane Cai <crane.cai@amd.com> writes:
> * merge point will cause duplicated patch generated, for example repo B has x,
>   y, z, then accepted by repo A in merge point, and then merge back to repo B
>   (they are different with commit id), they will generate 2 twice.

This is inevitable, if 'x' and (say) 'b' corresponds to each other but has textual changes due to different context.

> * some commits do not only change the driver source code, and they change some
>   other files also. Unfortunately git format-patch cut them. It cause compile
>   error.

You are probably running "format-patch a.. -- path/to/file.c". Try giving it the --full-diff option as well. We've recently discussed to make it the default for format-patch but the discussion thread petered out and didn't reach conclusion.

Previous: Crane CaiNext: Crane Cai
Message 2 of 3 in “[question] retrieve some patches from another repository”
  1. Crane CaiJan 20, 2010
  2. Junio C HamanoJan 20, 2010
  3. Crane CaiJan 20, 2010

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.