From: Tim Henigan <tim.henigan@gmail.com>
To: git@vger.kernel.org
Subject: git submodule remove?
Date: Wed, 8 Jul 2009 15:41:14 -0400 [thread overview]
Message-ID: <32c343770907081241h5925545ah1cb551b31e45ddc0@mail.gmail.com> (raw)
Hello,
I recently encountered a situation where a user wanted to remove a submodule
from a repository. Searching the mail archive, I found this thread
[1], but it does
not appear that it was ever followed up.
The Git Submodule Tutorial [2] has instructions for removing submodules, but it
seems natural to teach git how to "submodule rm".
This change would require git-submodule.sh to:
1. Modify the .gitmodules file (remove the entry for the submodule).
2. Modify the .git/config file (remove the entry for the submodule).
3. Delete the newly untracked files.
Another option to consider would be a "submodule rm --cached" option which would
keep the newly untracked files. However, with this option, I believe
it should still
descend into the submodule directory to remove the leftover submodule
".git" folder.
Is there another way of doing this? If not, does this sound like a
reasonable change?
Thanks,
Tim Henigan
[1] http://article.gmane.org/gmane.comp.version-control.git/101610/match=submodule+remove
[2] http://git.or.cz/gitwiki/GitSubmoduleTutorial
next reply other threads:[~2009-07-08 19:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 19:41 Tim Henigan [this message]
2009-07-08 21:54 ` git submodule remove? Raman Gupta
2009-07-11 5:27 ` Tim Harper
-- strict thread matches above, loose matches on Subject: below --
2008-03-31 18:58 Asheesh Laroia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=32c343770907081241h5925545ah1cb551b31e45ddc0@mail.gmail.com \
--to=tim.henigan@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).