Re: git-config: aliases with parameter expansion ($1 and such)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 24, 2008, 02:47 UTC
- Message-ID
- <7vzlso3kjc.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <76718490803231854u6ee76437h5acf37b0b602f3b1@mail.gmail.com>
"Jay Soffian" <jaysoffian@gmail.com> writes:
Show 5 quoted lines
> 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 '-'?