From mboxrd@z Thu Jan 1 00:00:00 1970 From: "W. Trevor King" Subject: Re: [PATCH v2] submodule: add 'deinit' command Date: Wed, 12 Dec 2012 19:28:05 -0500 Message-ID: <20121213002805.GA8380@odin.tremily.us> References: <50BBB22A.7050901@web.de> <7vhao31s9e.fsf@alter.siamese.dyndns.org> <50BE6FB9.70301@web.de> <50C89DF3.20303@drmicha.warpmail.net> <50C8BD6B.9010702@web.de> <7vr4mv3w2x.fsf@alter.siamese.dyndns.org> <50C90469.8080303@web.de> <7vlid23nnc.fsf@alter.siamese.dyndns.org> <20121212230926.GC7729@odin.tremily.us> <7vsj7a268w.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=YZ5djTAD1cGYuMQK Cc: Jens Lehmann , Michael J Gruber , Phil Hord , Git , Heiko Voigt , Jeff King , Shawn Pearce , Nahor To: Junio C Hamano X-From: git-owner@vger.kernel.org Thu Dec 13 01:28:29 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tiwf6-0002gT-5K for gcvg-git-2@plane.gmane.org; Thu, 13 Dec 2012 01:28:28 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755020Ab2LMA2L (ORCPT ); Wed, 12 Dec 2012 19:28:11 -0500 Received: from vms173001pub.verizon.net ([206.46.173.1]:42644 "EHLO vms173001pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754793Ab2LMA2K (ORCPT ); Wed, 12 Dec 2012 19:28:10 -0500 Received: from odin.tremily.us ([unknown] [72.68.110.234]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MEY000F01ATEK10@vms173001.mailsrvcs.net> for git@vger.kernel.org; Wed, 12 Dec 2012 18:28:08 -0600 (CST) Received: by odin.tremily.us (Postfix, from userid 1000) id 3D2B971CD1E; Wed, 12 Dec 2012 19:28:05 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; t=1355358485; bh=XHxnTYVR/Bc5TScakiY4dLpEtYbO0hj2rtjqf4lLWUc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=DvRjOxyWo+RASaCW2kWMyUhVgpxm7WyiOW0Xf+i8tBU+SUrrwAdt6U6+nWGp2H8rD MhBM7fHKQam4zbHwqY60QBzut42TCfzL1uonPXX40zAXJVY/KPpZpX4NMkfVILt1fR DN2MuDPFP4L/9VWXm7ivrBNqynIGKXjqS1OfIfq4= Content-disposition: inline In-reply-to: <7vsj7a268w.fsf@alter.siamese.dyndns.org> OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; url=http://tremily.us/pubkey.txt User-Agent: Mutt/1.5.21 (2010-09-15) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 12, 2012 at 03:35:59PM -0800, Junio C Hamano wrote: > "W. Trevor King" writes: >=20 > > 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. >=20 > 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? Ah yes, the gitlink is only in the index. Sorry for the noise. --=20 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 --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAEBAgAGBQJQySETAAoJEEUbTsx0l5OMq7QP/3jzQESkLSGeyWLugwGzf1Ra ZKf3RiHi3UatzsTgGBq50rM9RDu6ao+hGjWZkvVaCBG/jXV9sPSLdCPTrUOC/5NU bsOtb1RBWbhzJXu7K77rz3VctjCBF+SftEnRUCb1YM5mtT0hHWACa1GdxqjGBHRy +guzvmAPnzMpfOXxAz77y7z/YadKD39PSMA316Y1g+AzQr8pWbXqpbNUc4r/c+6d zi7N2jPgBQntORW/tvT8rzBy1L9sei2NXrMsW4GNZQa1e1xgntzUwGwTvA/98XFz hqPliQdR/jJl0wgWGgGl4yOVxsqf+dLR4zOANvlUtiW8fhgeXHxu6WeOy+26ZkGw +HzojJPUVijLP4Ag1CJH8BGeG+RMQamyS9lbycx0D40r/1vKrVw+40G7zXxlJ1bp BGNG5TiPmBcZt7AdElr7/gxtL5t6gN/0yq0+VlpyErOCMJ6PL4ErLGjJiSd02fXO mps7/Mcv2L3oalFV0Gitj5DqvpRW3Yet+gBMCIXuMmiLvpSzxoo/4TSeqOuOSPop k5aSffxN79Hs3AIZbtrQlDY/6rYBhGV0iO6Lm8/Yk0B40AaS6LMnNaEioRD5c9JO D5Rn9WWrLlYcOQc0Evy9dchQ8ycCfJbOQuZeD8eur19m4kwJXfJCv6xdCTFB/Mua 3DZZSwGp2lD6hPmQ+eaV =MZm1 -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK--