Re: [PATCH] Make '!' aliases more useful

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jul 01, 2007 at 10:51:58PM +0100, Johannes Schindelin wrote:
> 
> When an alias starts with an exclamation mark, the rest is interpreted
> as a shell command. However, all arguments passed to git used to be
> ignored.
> 
> Now you can have an alias like
> 
> 	$ git config alias.e '!echo'
> 
> and
> 
> 	$ git e Hello World
> 
> does what you expect it to do.

But what if you don't want the argument passed at the end of the
alias, but somewhere else?  I suspect the better answer would be to
support $* and $1, $2, $3, et. al interpolation, no?  It was on my
list of things to do when I had a spare moment, but I never got around
to it.

					- Ted
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux