From: "Jay Soffian" <jaysoffian@gmail.com>
To: "Junio C Hamano" <gitster@pobox.com>
Cc: "Jeff King" <peff@peff.net>,
"Dirk Süsserott" <newsletter@dirk.my1.cc>,
"Git Mailing List" <git@vger.kernel.org>
Subject: Re: git-config: aliases with parameter expansion ($1 and such)
Date: Mon, 24 Mar 2008 10:54:28 -0400 [thread overview]
Message-ID: <76718490803240754g161998bereb5bf3a22eb8ca76@mail.gmail.com> (raw)
In-Reply-To: <7vzlso3kjc.fsf@gitster.siamese.dyndns.org>
On Sun, Mar 23, 2008 at 10:47 PM, Junio C Hamano <gitster@pobox.com> wrote:
> "Jay Soffian" <jaysoffian@gmail.com> writes:
>
> > All my shell aliases therefor look like:
> >
> > h = "!sh -c 'git alias \"$1\" || git help \"$1\"' -"
> >
> > (Notice the trailing '-'.)
>
> Just for my curiosity, why aren't they
>
> > h = "!sh -c 'git alias \"$0\" || git help \"$0\"'"
>
> without trailing '-'?
Lost to the mists of time. But I think for consistency with other
aliases where I was checking $#. Maybe.
j.
prev parent reply other threads:[~2008-03-24 14:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-23 13:28 git-config: aliases with parameter expansion ($1 and such) Dirk Süsserott
2008-03-23 13:45 ` Jay Soffian
2008-03-23 14:04 ` Dirk Süsserott
2008-03-23 14:19 ` Johannes Schindelin
2008-03-23 14:31 ` Dirk Süsserott
2008-03-23 19:38 ` Jeff King
2008-03-23 19:38 ` Jeff King
2008-03-23 19:45 ` Jeff King
2008-03-24 1:54 ` Jay Soffian
2008-03-24 2:47 ` Junio C Hamano
2008-03-24 13:15 ` Dirk Süsserott
2008-03-24 19:29 ` Jeff King
2008-03-24 14:54 ` Jay Soffian [this message]
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=76718490803240754g161998bereb5bf3a22eb8ca76@mail.gmail.com \
--to=jaysoffian@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=newsletter@dirk.my1.cc \
--cc=peff@peff.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).