Re: Migrating svn to git with heavy use of externals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 8, 2008 at 2:07 PM, D. Stuart Freeman
<stuart.freeman@xxxxxxxxxxxxx> wrote:
> Maybe I should clarify.
>  I've imported an svn managed project into a git repository
>  with 71 submodules, what I don't understand though is if I
>  have a branch called 2-5-x and another called 2-4-x in each of
>  the submodules and the superproject, is there a way to
>  associate those?

I don't think git-svn currently knows how to import svn:externals
properly.  Basically you'd have to do it yourself, perhaps with the
help of something like git-filter-branch and a shell script.

The equivalent of svn:externals in git is called git-submodule, and
it's actually much more powerful than svn:externals, because you can
link to a *specific revision* and not just a branch.  In other words,
I can set up my application to point at r2956 of a library, so even if
the library changes in the future, my application always gets exactly
that version.  (To have the app use the later version, you have to
'git pull' in the submodule, then make a commit in the application
module.)

See "man git-submodule" and "man git-filter-branch" for more information.

If I'm wrong and git-svn already supports svn:externals, I'm sure
someone will correct me :)

Have fun,

Avery
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux