# [PATCH] git-submodule: re-enable 'status' as the default subcommand

4 messages from 2007-08-04 to 2007-08-17. Participants: Lars Hjemli, Junio C Hamano, Sven Verdoolaege.
Thread: https://gitlist.dev/t/9381

## Lars Hjemli, 2007-08-04 14:25

Subject: [PATCH] git-submodule: re-enable 'status' as the default subcommand
Message-ID: <11862375532593-git-send-email-hjemli@gmail.com>
URL: https://gitlist.dev/e/11862375532593-git-send-email-hjemli%40gmail.com

```
This was broken as part of ecda072380.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
---
 git-submodule.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-submodule.sh b/git-submodule.sh
index 2cfeadd..3320998 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -313,7 +313,7 @@ case "$add,$init,$update,$status,$cached" in
 ,,1,,)
 	modules_update "$@"
 	;;
-,,,1,*)
+,,,*,*)
 	modules_list "$@"
 	;;
 *)
-- 
1.5.3.rc4-dirty

```

## Lars Hjemli, 2007-08-17 07:25

Subject: [PATCH] git-submodule: re-enable 'status' as the default subcommand
Message-ID: <8c5c35580708170025g70db9f3eu664551400e9430d4@mail.gmail.com>
URL: https://gitlist.dev/e/8c5c35580708170025g70db9f3eu664551400e9430d4%40mail.gmail.com
In-Reply-To: <11862375532593-git-send-email-hjemli@gmail.com>

```
Hi

I got no response on this patch, was it simply overlooked? I really think

$ git submodule

should show the available submodules and their status.

--
larsh

```

## Junio C Hamano, 2007-08-17 08:10

Subject: Re: [PATCH] git-submodule: re-enable 'status' as the default subcommand
Message-ID: <7vmywqh98d.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vmywqh98d.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <8c5c35580708170025g70db9f3eu664551400e9430d4@mail.gmail.com>

```
"Lars Hjemli" <lh@elementstorage.no> writes:

> I got no response on this patch, was it simply overlooked? I really think
>
> $ git submodule
>
> should show the available submodules and their status.

Probably.  I do not think of any other alternative behaviour
that would make sense.

Sven?

```

## Sven Verdoolaege, 2007-08-17 09:09

Subject: Re: [PATCH] git-submodule: re-enable 'status' as the default subcommand
Message-ID: <20070817090947.GG1070MdfPADPa@greensroom.kotnet.org>
URL: https://gitlist.dev/e/20070817090947.GG1070MdfPADPa%40greensroom.kotnet.org
In-Reply-To: <7vmywqh98d.fsf@gitster.siamese.dyndns.org>

```
On Sat, Aug 04, 2007 at 04:25:53PM +0200, Lars Hjemli wrote:
> This was broken as part of ecda072380.
> 
> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
> ---
>  git-submodule.sh |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/git-submodule.sh b/git-submodule.sh
> index 2cfeadd..3320998 100755
> --- a/git-submodule.sh
> +++ b/git-submodule.sh
> @@ -313,7 +313,7 @@ case "$add,$init,$update,$status,$cached" in
>  ,,1,,)
>  	modules_update "$@"
>  	;;
> -,,,1,*)
> +,,,*,*)
>  	modules_list "$@"
>  	;;
>  *)

Sorry about that.  I didn't realize that it was supposed to do that
(it seems I didn't read the manual carefully enough) and I forgot
to mention I changed it.

On Fri, Aug 17, 2007 at 01:10:42AM -0700, Junio C Hamano wrote:
> "Lars Hjemli" <lh@elementstorage.no> writes:
> > I got no response on this patch, was it simply overlooked? I really think
> >
> > $ git submodule
> >
> > should show the available submodules and their status.
> 
> Probably.  I do not think of any other alternative behaviour
> that would make sense.
> 
> Sven?

No objections from me.

skimo

```
