Re: General support for ! in git-config values
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 2, 2012, 00:27 UTC
- Message-ID
- <7vliom13lm.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CANgJU+X+UZmycwE6xkJ-zHfT7ai6nV9zbeR4WYnAXczL5JtqjA@mail.gmail.com>
demerphq <demerphq@gmail.com> writes:
Show 10 quoted lines
> If Ævar's proposal was implemented without a --with-exec switch then > > user.name = !me > > would set your name to the result of executing the "me" command, which > likely would have the same result as not having set your name at all, > but presumably with a warning about a bad command. > > user.name=!ldap_full_name > user.email=!ldap_email
I didn't get the impression that that was what he was proposing, but regardless of who's suggesting it, the above does not make any sense, from the syntax point of view.
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".