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

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

 



On 7/2/07, Theodore Tso <tytso@xxxxxxx> wrote:
On Mon, Jul 02, 2007 at 04:55:24PM +0100, Johannes Schindelin wrote:
> > 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.
>
> There is a point where you do not want to complicate git, but rather write
> a script. This is such a point IMHO.

Such a point exists, I agree, but I would draw after $* and $1/$2/$3
interpolation.  There is a lot more value that gets added with
positional arguments support, and it makes git aliases more usable on
platforms such as Windows where scripting capability is much more
limited.

I don't think it is _possible_ to make it work on Windows properly: you have
to quote the arguments with whitespaces as there is nothing like argv there
(windows programs don't use command line, so it does not exist).
As the quoting is implemented in the programs the rules are all different
and mostly suboptimal.
-
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