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

Re: : Networking

From
Petr Baudis <pasky@ucw.cz>
Date
Apr 26, 2005, 18:33 UTC
Message-ID
<20050426183350.GB13224@pasky.ji.cz>
In-Reply-To
<20050426005725.6bfe6135.akpm@osdl.org>

Dear diary, on Tue, Apr 26, 2005 at 09:57:25AM CEST, I got a letter where Andrew Morton <akpm@osdl.org> told me that...

> c) To generate -mm's linus.patch (patch against 2.6.12-rc3):
> 
> 	git pull origin
> 	git diff -r v2.6.12-rc3 > ../25/patches/linus.patch

(Mainly for people not familiar with git-pasky - this merged origin to the working tree since it was tracked branch - that's what origin is by default after git init.)

Show 6 quoted lines
> d) To generate davem's tree (patch against linus's current tree (ie: patch
>    against 2.6.12-rc3+linus.patch)):
> 
> 	git pull git-net
> 	MERGE_BASE=$(merge-base $(cat .git/heads/origin ) $(cat .git/heads/git-net))
> 	git diff -r $MERGE_BASE:$(cat .git/heads/git-net) > ../25/patches/git-net.patch

This is the bad way; I think this suffers of basically the same problems as my ancient merging by "forward-patching". You should probably do a regular merge:

	git pull git-net
	git merge git-net
	git diff -p

The last command will show diff between current tree and the first parent; that amounts the merged patch in this case.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Jan HarkesNext: Andrew Morton
Message 6 of 13 in “Re: : Networking”
  1. Andrew MortonApr 26, 2005
  2. Linus TorvaldsApr 26, 2005
  3. Daniel BarkalowApr 26, 2005
  4. Petr BaudisApr 26, 2005
  5. Jan HarkesApr 26, 2005
  6. Petr BaudisApr 26, 2005
  7. Andrew MortonApr 26, 2005
  8. Linus TorvaldsApr 26, 2005
  9. Andrew MortonApr 26, 2005
  10. Linus TorvaldsApr 26, 2005
  11. Bram CohenApr 26, 2005
  12. Ryan AndersonApr 28, 2005
  13. Daniel BarkalowApr 28, 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.