Re: git-config: aliases with parameter expansion ($1 and such)
- From
Jeff King <peff@peff.net>
- Date
- Mar 23, 2008, 19:38 UTC
- Message-ID
- <20080323193855.GA22535@coredump.intra.peff.net>
- In-Reply-To
- <alpine.LSU.1.00.0803231518340.4353@racer.site>
On Sun, Mar 23, 2008 at 03:19:01PM +0100, Johannes Schindelin wrote:
Show 7 quoted lines
> > > atag = !git tag -a -m "$1" > > Why so complicated? > > atag = tag -a -m > > should work already.
The problem is that he needs to duplicate the final argument. I.e., "git atag foo" becomes "git atag -a -m foo foo".
-Peff