summaryrefslogtreecommitdiff
path: root/t/t7010-setup.sh
diff options
context:
space:
mode:
authorMark Levedahl <mlevedahl@gmail.com>2008-03-05 01:15:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-05 21:37:46 (GMT)
commitd4264ca3233e206ea927bc94befda530683b5836 (patch)
tree0db376ac14806d3acd84590efc2f3b5cf85c7f84 /t/t7010-setup.sh
parentc95b3ad9ea310ec89e31a21edecaaf2c374e2c46 (diff)
downloadgit-d4264ca3233e206ea927bc94befda530683b5836.zip
git-d4264ca3233e206ea927bc94befda530683b5836.tar.gz
git-d4264ca3233e206ea927bc94befda530683b5836.tar.bz2
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>
Diffstat (limited to 't/t7010-setup.sh')
0 files changed, 0 insertions, 0 deletions