Re: [PATCH v6] submodule: add 'deinit' command

2013-03-05 Thread Heiko Voigt
On Tue, Mar 05, 2013 at 07:45:22AM -0800, Junio C Hamano wrote: > Heiko Voigt writes: > > >> + if test -z "$force" > >> + then > >> + git rm -n "$sm_path" || > >> + die "$(eval_gettext "Submodule work tree > >> '

Re: [PATCH v6] submodule: add 'deinit' command

2013-03-05 Thread Junio C Hamano
Heiko Voigt writes: >> +if test -z "$force" >> +then >> +git rm -n "$sm_path" || >> +die "$(eval_gettext "Submodule work tree >> '\$sm_path' contains local modifications; use '-f' to discard them")" >

Re: [PATCH v6] submodule: add 'deinit' command

2013-03-04 Thread Heiko Voigt
Hi, On Mon, Mar 04, 2013 at 10:20:24PM +0100, Jens Lehmann wrote: > diff --git a/git-submodule.sh b/git-submodule.sh > index 004c034..44f70c4 100755 > --- a/git-submodule.sh > +++ b/git-submodule.sh > @@ -547,6 +548,80 @@ cmd_init() > } > [...] > + > + module_list "$@" | > + while read m

[PATCH v6] submodule: add 'deinit' command

2013-03-04 Thread Jens Lehmann
With "git submodule init" the user is able to tell git he cares about one or more submodules and wants to have it populated on the next call to "git submodule update". But currently there is no easy way he could tell git he does not care about a submodule anymore and wants to get rid of his local w