Re: submodule: if $command was not matched, don't parse other args

2012-09-24 Thread Ramkumar Ramachandra
Junio C Hamano wrote: > Ramkumar Ramachandra writes: > >> Junio C Hamano wrote: >>> OK, I do not think Ramkumar's patch hurts anybody, but dropping the >>> "nothing on the command line defaults to 'status' action" could. So >>> let's queue the patch as-is at least for now and leave the default >>

Re: submodule: if $command was not matched, don't parse other args

2012-09-24 Thread Junio C Hamano
Ramkumar Ramachandra writes: > Junio C Hamano wrote: >> OK, I do not think Ramkumar's patch hurts anybody, but dropping the >> "nothing on the command line defaults to 'status' action" could. So >> let's queue the patch as-is at least for now and leave the default >> discussion to a separarte th

Re: submodule: if $command was not matched, don't parse other args

2012-09-24 Thread Junio C Hamano
Marc Branchaud writes: > On 12-09-23 01:36 PM, Jens Lehmann wrote: >> Am 22.09.2012 22:31, schrieb Junio C Hamano: >>> Ramkumar Ramachandra writes: diff --git a/git-submodule.sh b/git-submodule.sh index a7e933e..dfec45d 100755 --- a/git-submodule.sh +++ b/git-submodule.sh >>>

Re: submodule: if $command was not matched, don't parse other args

2012-09-24 Thread Marc Branchaud
On 12-09-23 01:36 PM, Jens Lehmann wrote: > Am 22.09.2012 22:31, schrieb Junio C Hamano: >> Ramkumar Ramachandra writes: >>> diff --git a/git-submodule.sh b/git-submodule.sh >>> index a7e933e..dfec45d 100755 >>> --- a/git-submodule.sh >>> +++ b/git-submodule.sh >>> @@ -1108,7 +1108,15 @@ do >>> d

Re: submodule: if $command was not matched, don't parse other args

2012-09-23 Thread Jens Lehmann
Am 22.09.2012 22:31, schrieb Junio C Hamano: > Ramkumar Ramachandra writes: >> diff --git a/git-submodule.sh b/git-submodule.sh >> index a7e933e..dfec45d 100755 >> --- a/git-submodule.sh >> +++ b/git-submodule.sh >> @@ -1108,7 +1108,15 @@ do >> done >> >> # No command word defaults to "status" >

Re: submodule: if $command was not matched, don't parse other args

2012-09-22 Thread Junio C Hamano
Ramkumar Ramachandra writes: > When we try to execute 'git submodule' with an invalid subcommand, we > get an error like the following: > > $ git submodule show > error: pathspec 'show' did not match any file(s) known to git. > Did you forget to 'git add'? > > The cause of the problem