From: Mike Hommey <mh@glandium.org>
To: git@vger.kernel.org
Subject: Re: Advanced aliases with arguments (?)
Date: Sun, 4 Nov 2007 01:45:51 +0100 [thread overview]
Message-ID: <20071104004551.GA30927@glandium.org> (raw)
In-Reply-To: <20071104004020.GA30487@glandium.org>
On Sun, Nov 04, 2007 at 01:40:20AM +0100, Mike Hommey wrote:
> Hi,
>
> I read on http://git.or.cz/gitwiki/Aliases that
>
> Starting with version 1.5.3, git supports appending the
> arguments to commands prefixed with "!", too. If you need to
> perform a reordering, or to use an argument twice, you can use
> this trick:
>
> [alias]
> example = !sh -c "ls $1 $0"
>
>
> AFAICT, it doesn't work with the 1.5.3.5 I use. Is it false advertising
> or was there some regression ?
Aaaah it does work, but you need to use single quotes, not double
quotes.
Mike
prev parent reply other threads:[~2007-11-04 0:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-04 0:40 Advanced aliases with arguments (?) Mike Hommey
2007-11-04 0:45 ` Mike Hommey [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=20071104004551.GA30927@glandium.org \
--to=mh@glandium.org \
--cc=git@vger.kernel.org \
/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).