Re: [PATCH v2] submodule: add 'deinit' command
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 12, 2012, 23:35 UTC
- Message-ID
- <7vsj7a268w.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20121212230926.GC7729@odin.tremily.us>
"W. Trevor King" <wking@tremily.us> writes:
> Should `deinit` remove the submodule checkout, replace it with the > original gitlink, and clear the .git/config information then? That > would restore the user to the state they'd be in if they were never > interested in the submodule.
AFAIU, "restore the user to the state" is the goal. I am not sure what you meant by "replace it with the original gitlink", though. A checkout with a submodule that the user is not interested in would have an empty directory at that path, no?