From: "Imran M Yousuf" <imyousuf@gmail.com>
To: "Johannes Sixt" <j.sixt@viscovery.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Simplified the invocation of command action in submodule
Date: Wed, 9 Jan 2008 15:07:59 +0600 [thread overview]
Message-ID: <7bfdc29a0801090107j292eeaf5u2b49651ed23ca783@mail.gmail.com> (raw)
In-Reply-To: <47848CDD.7050806@viscovery.net>
I already saw that mistake Johannes, thank you for pointing it out.
On Jan 9, 2008 2:59 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
> imyousuf@gmail.com schrieb:
>
> > @@ -16,6 +16,7 @@ update=
> > status=
> > quiet=
> > cached=
> > +command=
> >
> > #
> > # print stuff on stdout unless -q was specified
> > @@ -293,20 +294,23 @@ modules_list()
> > done
> > }
> >
> > +# command specifies the whole function name since
> > +# one of theirs prefix is module not modules
> > while test $# != 0
> > do
> > case "$1" in
> > add)
> > add=1
> > + command="module_$1"
> > ;;
> > init)
> > - init=1
> > + command="modules_$1"
> > ;;
> > update)
> > - update=1
> > + command="modules_$1"
> > ;;
> > status)
> > - status=1
> > + command="modules_list"
> > ;;
> > -q|--quiet)
> > quiet=1
> > @@ -320,7 +324,7 @@ do
> > branch="$2"; shift
> > ;;
> > --cached)
> > - cached=1
> > + command="modules_list"
>
> Don't remove cached=1 because otherwise --cached is effectively ignored.
>
> > ;;
> > --)
> > break
> > @@ -345,20 +349,8 @@ case "$add,$branch" in
> > ;;
> > esac
> >
> > -case "$add,$init,$update,$status,$cached" in
> > -1,,,,)
> > - module_add "$@"
> > - ;;
> > -,1,,,)
> > - modules_init "$@"
> > - ;;
> > -,,1,,)
> > - modules_update "$@"
> > - ;;
> > -,,,*,*)
> > - modules_list "$@"
> > - ;;
> > -*)
> > +if [ -z $command ]; then
> > usage
> > - ;;
> > -esac
> > +else
> > + "$command" "$@"
> > +fi
>
> - Previously 'git submodule' was equvalent to 'git submodule status', now
> it is an error.
>
> - Previously, passing --cached to add, init, or update was an error, now
> it is not.
>
> -- Hannes
>
--
Imran M Yousuf
Entrepreneur & Software Engineer
Smart IT Engineering
Dhaka, Bangladesh
Email: imran@smartitengineering.com
Mobile: +880-1711402557
next prev parent reply other threads:[~2008-01-09 9:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-09 3:59 [PATCH] Simplified the invocation of command action in submodule imyousuf
2008-01-09 8:19 ` Junio C Hamano
2008-01-09 8:23 ` Imran M Yousuf
2008-01-09 8:59 ` Johannes Sixt
2008-01-09 9:07 ` Imran M Yousuf [this message]
2008-01-09 9:15 ` Johannes Sixt
2008-01-09 9:51 ` Imran M Yousuf
2008-01-09 10:01 ` Johannes Sixt
2008-01-09 10:06 ` Imran M Yousuf
2008-01-09 10:27 ` Junio C Hamano
2008-01-09 10:24 ` Lars Hjemli
2008-01-10 3:05 ` Imran M Yousuf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7bfdc29a0801090107j292eeaf5u2b49651ed23ca783@mail.gmail.com \
--to=imyousuf@gmail.com \
--cc=git@vger.kernel.org \
--cc=j.sixt@viscovery.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).