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

Re: merging git repositories history for full history of linux

From
YPYoann Padioleau <padator@wanadoo.fr>
Date
Mar 24, 2008, 21:10 UTC
Message-ID
<87ej9zomk1.fsf@wanadoo.fr>
In-Reply-To
<7v63vbvr2b.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 13 quoted lines
> Yoann Padioleau <padator@wanadoo.fr> writes:
>
>> I would like to merge the 3 git repositories of the history
>> of linux, the one by Dave Jones from linux 0.01 to linux 2.4.0, 
>> the one by tglx from 2.4.0 to 2.6.12 and the one from 2.6.12
>> by torvalds until the last version of Linux.
>
> I think you can install two grafts (one that says the root in tglx history
> has one parent that is tip of Dave Jones history, another that says that
> the 2.6.12-rc2 commit which is the root in Linus history has one parent
> that is near the tip of tglx history), and if you want the result to use
> locally then you are done.  Otherwise you can run filter-branch on the
> result, but the future commits from Linus tree will all be different.
Thanks, I'll try that. 

Also the Dave jones commits have the wrong date. All the 1040 commits are set to December 2007. I can get all the dates for the different versions of Linux but is there an easy way then to change the date for those 1040 commitid ? and also author ? The reasons for this is I want to use 'git annotate' on the full history of Linux to do some statistics about the evolution of Linux so I need the good date for each commit.

Also, why the diff produce by git log -p can not be applied as is on another git repositories ? I tried to do a script that just duplicate a git repository by getting the patch for each commit with 'git log -p' and applies them in turn to a fresh repo with git applypatch but it fails, git returns some error such as "b/Makefile already exist".

Previous: Junio C Hamano
Message 3 of 3 in “merging git repositories history for full history of linux”
  1. Yoann PadioleauMar 24, 2008
  2. Junio C HamanoMar 24, 2008
  3. Yoann PadioleauMar 24, 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.