Files
git/Documentation
Mark Levedahl d4264ca323 git-submodule - Allow adding a submodule in-place
When working in the top-level project, it is useful to create a new
submodule as a git repo in a subdirectory, then add that submodule to
the top-level in place.

This patch allows "git submodule add <intended url> subdir" to add the
existing subdir to the current project.  The presumption is the user will
later push / clone the subdir to the <intended url> so that future
submodule init / updates will work.

Absent this patch, "git submodule add" insists upon cloning the subdir
from a repository at the given url, which is fine for adding an existing
project in, but less useful when adding a new submodule from scratch to an
existing project.  The former functionality remains, and the clone is
attempted if the subdir does not already exist as a valid git repo.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-03-05 13:37:46 -08:00
..
2008-01-14 18:04:51 -08:00
2008-03-02 16:08:37 -08:00
2007-12-14 22:29:38 -08:00
2007-08-10 11:32:42 -07:00
2008-01-17 22:55:25 -08:00
2007-06-07 00:04:01 -07:00
2007-06-07 00:04:01 -07:00
2007-07-24 00:47:05 -07:00
2008-01-29 22:00:34 -08:00
2008-03-01 01:09:06 -08:00
2008-03-02 16:08:37 -08:00
2008-02-19 21:31:33 -08:00
2008-02-19 20:46:15 -08:00
2008-01-14 16:14:29 -08:00
2008-02-27 14:07:51 -08:00
2008-02-23 11:49:34 -08:00
2008-01-07 14:02:00 -08:00
2007-06-07 00:04:01 -07:00
2007-06-07 00:04:01 -07:00
2007-06-07 00:04:01 -07:00
2007-06-07 00:04:01 -07:00
2007-06-07 00:04:01 -07:00
2007-05-20 00:15:53 -07:00
2007-05-20 00:15:53 -07:00
2007-06-02 16:02:49 -07:00
2007-06-16 01:13:35 -07:00
2007-07-02 00:35:58 -07:00
2007-07-12 12:01:47 -07:00
2007-08-15 15:01:20 -07:00
2007-05-20 00:30:39 -07:00
2007-09-19 03:11:28 -07:00
2008-01-29 22:00:34 -08:00
2007-10-03 02:33:48 -07:00
2007-11-18 14:00:38 -08:00
2007-12-01 11:20:00 -08:00
2008-01-07 22:41:43 -08:00
2008-02-17 00:20:38 -08:00
2008-02-17 00:20:38 -08:00
2008-02-23 11:31:04 -08:00
2008-02-01 19:10:10 -08:00