Re: General support for ! in git-config values

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

 



On 2 February 2012 02:41, Junio C Hamano <gitster@xxxxxxxxx> wrote:
> demerphq <demerphq@xxxxxxxxx> writes:
>
>>> When you say "alias.co = !git checkout --foo-bar", you are not saying
>>> "instead of usual aliases like 'alias.co = checkout' that defines what
>>> string replaces the 'co' alias, please run !whatever command, capture
>>> its output, and that is the _value_ of alias.co variable, i.e. the command
>>> line that is going to be run".
>>
>> I think I see your point. Using the same "!" notation for "execute
>> this command and exit" and "execute this command and use its result as
>> the config value" might be confusing.
>
> I am afraid that you are not seeing it.  In "alias.co = !whatever", bang
> does *NOT* mean "execute this command and exit".

Then I have been unclear. I understand what this does:

$ git config alias.foo '!echo foo'
$ git foo
foo

And if you were trying to say that having "!" denote "execute this
command and use its return as the config value" would be confusing as
it is different from its meaning for aliases then I see your point.

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
--
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]