diff options
author | Stefan Beller <sbeller@google.com> | 2016-10-06 12:37:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-11-29 14:25:09 -0800 |
commit | 619acfc78c526bc9df17b7704e60d0512ab7a84c (patch) | |
tree | dcf2fbb2e6814b51aa4c4f05871601e3b5742294 /t/helper | |
parent | submodule_needs_pushing(): explain the behaviour when we cannot answer (diff) | |
download | tgif-619acfc78c526bc9df17b7704e60d0512ab7a84c.tar.xz |
submodule add: extend force flag to add existing repos
Currently the force flag in `git submodule add` takes care of possibly
ignored files or when a name collision occurs.
However there is another situation where submodule add comes in handy:
When you already have a gitlink recorded, but no configuration was
done (i.e. no .gitmodules file nor any entry in .git/config) and you
want to generate these config entries. For this situation allow
`git submodule add` to proceed if there is already a submodule at the
given path in the index.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
0 files changed, 0 insertions, 0 deletions