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

Re: [question] retrieve some patches from another repository

From
CCCrane Cai <crane.cai@amd.com>
Date
Jan 20, 2010, 08:09 UTC
Message-ID
<20100120080915.GB1965@crane-desktop>
In-Reply-To
<7vljft5m7h.fsf@alter.siamese.dyndns.org>
Hi Junio,
Thank you. It's my pleasure to get git maintainer's response.
On Tue, Jan 19, 2010 at 10:23:14PM -0800, Junio C Hamano wrote:
Show 6 quoted lines
> > * 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.

So you mean git can not avoid generate 2 twice because they are different commits. If I need this I will manually do it or add a new feature to let format-patch can identify the relationship of the 2 repository, and then move the 'since' point to avoid some point before merge. Maybe it has value to do it. Many subsystem maintainers will easy to provide patchset from any repository derived from linus to another repository which also derived from linus. The patchset will let integration a little easy, you can use 'git bisect' to trace, git comments to understand the code. And all change list is replayed, there almost no issue for integration.

Show 6 quoted lines
> 
> 
> 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.
Yes, you are right.
-- 
Best Regards,
- Crane
Previous: Junio C Hamano
Message 3 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.