Slashdot Mirror


SVN's svn:externals To GIT's Submodule

mcnazar writes "Do you manage your Rails Plugins via svn:externals? Thinking of switching to Git but are concerned that Git lacks a direct equivalent of svn:externals? In this article I present a work-around or even IMHO a better solution than SVN's svn:externals."

10 of 40 comments (clear)

  1. GIT lecture by Mr2cents · · Score: 5, Interesting

    There's an interesting talk about git on youtube, if you want an introduction to the program.

    And don't believe Linus when he says he's not a good speaker.

    --
    "It's too bad that stupidity isn't painful." - Anton LaVey
    1. Re:GIT lecture by mcnazar · · Score: 3, Informative

      Its a very informative and quite funny talk actually. Google Video host another GIT video here.

    2. Re:GIT lecture by XaXXon · · Score: 2, Interesting

      I just watched it.. I can't believe it was 70 minutes. Other than the aggressive passive-aggressive stuff he kept doing throughout the talk, it was quite good. It got me excited enough to go try git.

      Again I was impressed. It has been a while since I've tried git and I was amazed at how easy it was to do some easy stuff. I grabbed a source tarball and built it (on my mac) and it installed perfectly. Then I used it git to get the git source via http. That worked flawlessly. I went through some examples on the git site on the git code and it was all really nice. Everything made pretty good sense and just worked.

      The only thing was getting the man pages installed locally.. and in that case, I logged into #git on freenode and someone immediately helped me, even though os x's tar is lacking standard functionality and the immediate command they gave me didn't work.

      All I can say is WOW.

  2. Re:SVN branching a daunting task? by Atti+K. · · Score: 4, Informative

    Branching is easy. Merging them together again... well... What SVN lacks is merge tracking (a la ClearCase, for example - which is otherwise a horrible product, but that's not the point here). They plan to introduce it in 1.5, though.

    --
    .sig: No such file or directory
  3. Re:SVN branching a daunting task? by MartinG · · Score: 2, Interesting

    When you have large numbers of developers all creating their own experimental branches, the repo becomes a mess. Of course all the distributed tools fix this by design.

    Personally, when I have to interact with a project that uses svn (as I do daily in my job) I use bzr with its svn integration.

    --
    -- MartinG To mail me: echo kewyjlcxyzvjfxbqwh | tr bcefhjklqvwxyz .@adgimnoprstu
  4. svn:external vs git submodules by Dionysus · · Score: 2, Interesting

    I actually find svn:external a little more flexible than git's submodules. With svn, I can create a submodule/external for a given directory (say the module has the following subdirs: src and docs, you can pull in just src), while in git you would have to pull in the whole repos (correct me if I'm wrong)

    --
    Je ne parle pas francais.
    1. Re:svn:external vs git submodules by mcnazar · · Score: 2, Informative

      You are correct in that Git does not support partial checkouts. This has been the biggest hurdle in my SVN to Git transition. Yes it is a pain but the benefits I gain (disconnected development from my SVN respository whilst off the network) makes up for this.

  5. Re:SVN branching a daunting task? by Entrope · · Score: 3, Informative

    Proper merge tracking has been on the "we plan to introduce it" list for Subversion since well before 1.0, along with a few other things that most strongly-formal customers expect from version control systems (like useful history tracking/recovery in the face of file renames; issue #928). At least they claim merge tracking is actually on trunk now (issue #820) -- I'll believe it works decently when I see it.

  6. Re:SVN branching a daunting task? by lagfest · · Score: 4, Informative

    Merge tracking is the main feature of 1.5, which, according to this guy, is in beta right now. He does a demo of it too.

  7. Giston for managing SVN externals from Git by muchawi · · Score: 2, Interesting

    I use Giston for linking to SVN repositories from Git. It works like the piston counterpart for Subversion and allows me to update the local copy when I choose to.

    http://evil.che.lu/2008/1/18/ann-giston-0-2-0

    SHAMELESS SELF PROMOTION

    I produced an hour-long screencast tutorial on Git that has helped many people. Technically edited by Junio C. Hamano, available in Quicktime or Ogg Theora:

    http://peepcode.com/products/git