Re: General support for ! in git-config values
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 2, 2012, 01:41 UTC
- Message-ID
- <7v39au1073.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CANgJU+XQWdFmfmBJ4KX4GBz1a=TrVbp9BphGmhEb5Gphmzogjw@mail.gmail.com>
demerphq <demerphq@gmail.com> writes:
Show 9 quoted lines
>> 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".