Re: [RFC] git submodule purge

2015-03-26 Thread Jens Lehmann
Am 26.03.2015 um 14:30 schrieb Patrick Steinhardt: On Wed, Mar 25, 2015 at 08:47:59PM +0100, Jens Lehmann wrote: Am 25.03.2015 um 10:06 schrieb Patrick Steinhardt: Optionally I could implement `git gc --purge-submodule=` as a second way to access the feature so that we have a way of purging the

Re: [RFC] git submodule purge

2015-03-26 Thread Patrick Steinhardt
On Wed, Mar 25, 2015 at 08:47:59PM +0100, Jens Lehmann wrote: > Am 25.03.2015 um 10:06 schrieb Patrick Steinhardt: > > On Mon, Mar 23, 2015 at 10:32:27PM +0100, Jens Lehmann wrote: > >> Am 17.03.2015 um 08:56 schrieb Patrick Steinhardt: [snip] > >> Hmm, cmd_deinit() seems to cope with submodules re

Re: [RFC] git submodule purge

2015-03-25 Thread Jens Lehmann
Am 25.03.2015 um 10:06 schrieb Patrick Steinhardt: On Mon, Mar 23, 2015 at 10:32:27PM +0100, Jens Lehmann wrote: Am 17.03.2015 um 08:56 schrieb Patrick Steinhardt: On Mon, Mar 16, 2015 at 01:03:53PM -0700, Jonathan Nieder wrote: (+cc: Jens and Heiko, submodule experts) Hi, Patrick Steinhardt

Re: [RFC] git submodule purge

2015-03-25 Thread Patrick Steinhardt
On Mon, Mar 23, 2015 at 10:32:27PM +0100, Jens Lehmann wrote: > Am 17.03.2015 um 08:56 schrieb Patrick Steinhardt: > > On Mon, Mar 16, 2015 at 01:03:53PM -0700, Jonathan Nieder wrote: > >> (+cc: Jens and Heiko, submodule experts) > >> Hi, > >> > >> Patrick Steinhardt wrote: > >> > >>> This proposal

Re: [RFC] git submodule purge

2015-03-23 Thread Jens Lehmann
Am 17.03.2015 um 08:56 schrieb Patrick Steinhardt: On Mon, Mar 16, 2015 at 01:03:53PM -0700, Jonathan Nieder wrote: (+cc: Jens and Heiko, submodule experts) Hi, Patrick Steinhardt wrote: This proposal is just for discussion. If there is any interest I will implement the feature and send some

Re: [RFC] git submodule purge

2015-03-17 Thread Fredrik Gustafsson
On Tue, Mar 17, 2015 at 09:18:26AM +0100, Patrick Steinhardt wrote: > Is it even possible to create a new submodule without any > upstream repository? At least `git submodule init` does not work > without a corresponding entry in .gitmodules which the user would > have needed to create himself manu

Re: [RFC] git submodule purge

2015-03-17 Thread Patrick Steinhardt
On Mon, Mar 16, 2015 at 08:55:03AM -0700, Junio C Hamano wrote: > Patrick Steinhardt writes: > > > I think there should be a command that is able to remove those > > dangling repositories if the following conditions are met: > > > > - the submodule should not be initialized > > > > - the submodul

Re: [RFC] git submodule purge

2015-03-17 Thread Patrick Steinhardt
On Mon, Mar 16, 2015 at 01:03:53PM -0700, Jonathan Nieder wrote: > (+cc: Jens and Heiko, submodule experts) > Hi, > > Patrick Steinhardt wrote: > > > This proposal is just for discussion. If there is any interest I > > will implement the feature and send some patches. > > > > Currently it is hard

Re: [RFC] git submodule purge

2015-03-16 Thread Jonathan Nieder
(+cc: Jens and Heiko, submodule experts) Hi, Patrick Steinhardt wrote: > This proposal is just for discussion. If there is any interest I > will implement the feature and send some patches. > > Currently it is hard to properly remove submodules. That is when > a submodule is deinitialized and rem

Re: [RFC] git submodule purge

2015-03-16 Thread Junio C Hamano
Patrick Steinhardt writes: > I think there should be a command that is able to remove those > dangling repositories if the following conditions are met: > > - the submodule should not be initialized > > - the submodule should not have an entry in .gitmodules in the > currently checked out revis

[RFC] git submodule purge

2015-03-16 Thread Patrick Steinhardt
Hi, This proposal is just for discussion. If there is any interest I will implement the feature and send some patches. Currently it is hard to properly remove submodules. That is when a submodule is deinitialized and removed from a repository the directory '.git/modules/' will still be present a