Re: [PATCH v4] submodule: add 'deinit' command
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 12, 2013, 16:22 UTC
- Message-ID
- <7v1ubk8u6o.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CABURp0pC2FELxM5aUwxuTqS1roZm+fwkCQA+BoXjrd0+yQMmbg@mail.gmail.com>
Phil Hord <phil.hord@gmail.com> writes:
Show 9 quoted lines
> I think this would be clearer if 'git deinit' said > > rm 'submodule/*' > > or maybe > > Removed workdir for 'submodule' > > Is it just me?
The latter may probably be better.
After cloning the superproject, you show interest in individual submodules by saying "git submodule init <that submodule>" and until then your .git/config in the superproject does not indicate that you are interested in that submodule, and you won't have a submodule checkout.
"deinit" is a way to revert back to that original state; recording that you are no longer interested in the submodule is the primary effect, and removal of its checkout is a mere side effect of it.