Re: [PATCHv4] submodule deinit: require '--all' instead of '.' for all submodules

2016-05-05 Thread Stefan Beller
On Thu, May 5, 2016 at 12:20 PM, Jonathan Nieder wrote: > Junio C Hamano wrote: >> Jonathan Nieder writes: > >>> I mean low level as in implementation detail. The human user would >>> wonder "what is incompatible about them? Why are you stopping me from >>> what I am trying to do?" >> >> Maybe

Re: [PATCHv4] submodule deinit: require '--all' instead of '.' for all submodules

2016-05-05 Thread Jonathan Nieder
Junio C Hamano wrote: > Jonathan Nieder writes: >> I mean low level as in implementation detail. The human user would >> wonder "what is incompatible about them? Why are you stopping me from >> what I am trying to do?" > > Maybe s/incompatible/inconsistent/ is what you are after? Why are > you

Re: [PATCHv4] submodule deinit: require '--all' instead of '.' for all submodules

2016-05-05 Thread Stefan Beller
On Wed, May 4, 2016 at 4:59 PM, Jonathan Nieder wrote: >>> >>> Another option would be to call 'usage' and be done. >> >> I had that idea as well, but I think pointing out the low level is better >> than giving the high level again, so the user immediately sees what's wrong. > > I mean low level

Re: [PATCHv4] submodule deinit: require '--all' instead of '.' for all submodules

2016-05-05 Thread Stefan Beller
On Thu, May 5, 2016 at 10:59 AM, Junio C Hamano wrote: > Stefan Beller writes: > +When the command is run without pathspec, it errors out, +instead of deinit-ing everything, to prevent mistakes. In +version 2.8 and before the command gave a suggestion to use +'.' to unregister

Re: [PATCHv4] submodule deinit: require '--all' instead of '.' for all submodules

2016-05-05 Thread Junio C Hamano
Jonathan Nieder writes: > I mean low level as in implementation detail. The human user would > wonder "what is incompatible about them? Why are you stopping me from > what I am trying to do?" Maybe s/incompatible/inconsistent/ is what you are after? Why are you stopping me from what I am tryi

Re: [PATCHv4] submodule deinit: require '--all' instead of '.' for all submodules

2016-05-05 Thread Junio C Hamano
Stefan Beller writes: >>> +When the command is run without pathspec, it errors out, >>> +instead of deinit-ing everything, to prevent mistakes. In >>> +version 2.8 and before the command gave a suggestion to use >>> +'.' to unregister all submodules when it was invoked without >>> +any argument,

Re: [PATCHv4] submodule deinit: require '--all' instead of '.' for all submodules

2016-05-04 Thread Jonathan Nieder
Stefan Beller wrote: > On Wed, May 4, 2016 at 4:26 PM, Jonathan Nieder wrote: >> I think this paragraph could be removed. --all is explained lower >> down and the error message points it out to users who need it. > > When we want to keep supporting '.' forever, I would remove this section. Yes,

Re: [PATCHv4] submodule deinit: require '--all' instead of '.' for all submodules

2016-05-04 Thread Stefan Beller
On Wed, May 4, 2016 at 4:26 PM, Jonathan Nieder wrote: > Hi, > > Stefan Beller wrote: > >> Signed-off-by: Stefan Beller >> --- >> * reworded commit message slightly (realize, pathspec) >> * reworded the documentation > > Yay, thanks for your work on this. > > [...] >> +++ b/Documentation/git-subm

Re: [PATCHv4] submodule deinit: require '--all' instead of '.' for all submodules

2016-05-04 Thread Jonathan Nieder
Hi, Stefan Beller wrote: > Signed-off-by: Stefan Beller > --- > * reworded commit message slightly (realize, pathspec) > * reworded the documentation Yay, thanks for your work on this. [...] > +++ b/Documentation/git-submodule.txt > @@ -13,7 +13,7 @@ SYNOPSIS > [--reference ] [--d

Re: [PATCHv4] submodule deinit: require '--all' instead of '.' for all submodules

2016-05-04 Thread Junio C Hamano
Stefan Beller writes: > +When the command is run without pathspec, it errors out, > +instead of deinit-ing everything, to prevent mistakes. In > +version 2.8 and before the command gave a suggestion to use > +'.' to unregister all submodules when it was invoked without > +any argument, but this s

[PATCHv4] submodule deinit: require '--all' instead of '.' for all submodules

2016-05-04 Thread Stefan Beller
The discussion in [1] pointed out that '.' is a faulty suggestion as there is a corner case where it fails: > "submodule deinit ." may have "worked" in the sense that you would > have at least one path in your tree and avoided this "nothing > matches" most of the time. It would have still failed