From: Jeff King <peff@peff.net>
To: szager@google.com
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Fixes handling of --reference argument.
Date: Thu, 25 Oct 2012 04:36:26 -0400 [thread overview]
Message-ID: <20121025083625.GA8390@sigill.intra.peff.net> (raw)
In-Reply-To: <5088c5a4.L25tOcUVCSwBRpYF%szager@google.com>
On Wed, Oct 24, 2012 at 09:52:52PM -0700, szager@google.com wrote:
> Signed-off-by: Stefan Zager <szager@google.com>
> ---
> git-submodule.sh | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/git-submodule.sh b/git-submodule.sh
> index ab6b110..dcceb43 100755
> --- a/git-submodule.sh
> +++ b/git-submodule.sh
> @@ -270,7 +270,6 @@ cmd_add()
> ;;
> --reference=*)
> reference="$1"
> - shift
> ;;
Is that right? We'll unconditionally do a "shift" at the end of the
loop. If it were a two-part argument like "--reference foo", the extra
shift would make sense, but for "--reference=*", no extra shift should
be neccessary. Am I missing something?
-Peff
next prev parent reply other threads:[~2012-10-25 8:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-25 4:52 [PATCH] Fixes handling of --reference argument szager
2012-10-25 8:36 ` Jeff King [this message]
2012-10-25 10:45 ` W. Trevor King
2012-10-25 21:32 ` Jens Lehmann
2012-10-26 0:39 ` Jeff King
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=20121025083625.GA8390@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=szager@google.com \
/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).