public
Description: An example of how git submodules work. See the blog post for more info.
Homepage: http://daniel.collectiveidea.com/blog/2008/4/12/git-submodules-part-2
Clone URL: git://github.com/danielmorrison/submodule_example.git
Search Repo:
Added Rails as a submodule, as you typically would in a Rails app.
Sat Apr 12 10:39:26 -0700 2008
commit  59276847188833650403ea980716f92a4a9fbc0c
tree    8a07d805371d819bc036d3dc242507bb4bae7acf
parent  2c8066701cd0a6c9826e0912e3efa53179da9b96
...
 
 
 
...
1
2
3
0
@@ -1 +1,4 @@
0
+[submodule "vendor/rails"]
0
+ path = vendor/rails
0
+ url = git://github.com/rails/rails.git

Comments

  • danielmorrison Sat Apr 12 11:09:14 -0700 2008 at vendor/rails L0

    This is the magic. How git knows what revision the submodule is supposed to be.

  • rmm5t Sat Apr 12 17:08:07 -0700 2008 at vendor/rails L0

    Wicked. That helps explain it all.