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