summaryrefslogtreecommitdiff
path: root/csum-file.h
diff options
context:
space:
mode:
authorMark Levedahl <mlevedahl@gmail.com>2008-03-04 20:15:02 -0500
committerJunio C Hamano <gitster@pobox.com>2008-03-05 13:37:46 -0800
commitd4264ca3233e206ea927bc94befda530683b5836 (patch)
tree0db376ac14806d3acd84590efc2f3b5cf85c7f84 /csum-file.h
parentc95b3ad9ea310ec89e31a21edecaaf2c374e2c46 (diff)
downloadgit-d4264ca3233e206ea927bc94befda530683b5836.tar.gz
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 'csum-file.h')
0 files changed, 0 insertions, 0 deletions