Re: [QUESTION] How to add new configuration variable

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

 



On Fri, Sep 17, 2021 at 05:44:42PM +0700, Bagas Sanjaya wrote:
> Supposed that I'm writing git-foobar script ("git-foobar.sh"), which takes
> configuration variable "foobar.something" (string type).
> 
> How can I add that configuration variable so that it can be used by the
> script?

You can just add it. :) Git doesn't complain when it finds configuration
parameters it doesn't know anything about, it just ignores them.

E.g. in your .gitconfig or individual repository .git/config:

    [foobar]
        something = yourvalue

-K



[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