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

How to deal with mixed tree?

From
Pascal Obry <pascal@obry.net>
Date
Nov 22, 2011, 11:21 UTC
Message-ID
<CA+9ZNic-9U0nP1NGL0shUijnxdhaoEHwyxWM8rOzR2B6Qjq6zQ@mail.gmail.com>
A project P1 is under Git.
A project P2 is under Subversion.

P2 in fact replace a sub-directory (say SD) in P1. The project P2 is a replacement (extension) of the code in P1.

How to deal with this?
If you clone P1, remove SD in P1 to replace it by P2:
   $ git diff
   -> will display all the changes in SD, is there a way to avoid that?
   $ git merge (between branches) will try to merge changes in SD
I'd like to really tell Git to ignore SD as if it was not there. Any solution?

Thanks, Pascal.

-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Next: Holger Hellmuth
Message 1 of 8 in “How to deal with mixed tree?”
  1. Pascal ObryNov 22, 2011
  2. Holger HellmuthNov 22, 2011
  3. Pascal ObryNov 22, 2011
  4. Holger HellmuthNov 22, 2011
  5. Pascal ObryNov 22, 2011
  6. Holger HellmuthNov 22, 2011
  7. Pascal ObryNov 22, 2011
  8. Junio C HamanoNov 22, 2011

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.