Re: [PATCH v2] submodule: add 'deinit' command
- From
W. Trevor King <wking@tremily.us>
- Date
- Dec 12, 2012, 23:09 UTC
- Message-ID
- <20121212230926.GC7729@odin.tremily.us>
- In-Reply-To
- <7vlid23nnc.fsf@alter.siamese.dyndns.org>
On Wed, Dec 12, 2012 at 02:34:47PM -0800, Junio C Hamano wrote:
Show 10 quoted lines
> Jens Lehmann <Jens.Lehmann@web.de> writes: > > > So unless people agree that deinit should also remove the work > > tree I'll prepare some patches teaching all git commands to > > consistently ignore deinitialized submodules. Opinions? > > While I agree that consistency is good, "deinit" that does not > remove the working tree of the submodule the user explicitly said he > no longer wants to have the checkout for is a bug, and I think these > two are orthogonal issues.
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.
Trevor
-- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy