Re: [PATCH v8 0/3] teach submodules to know they're submodules
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 1, 2022, 03:08 UTC
- Message-ID
- <xmqq7d9ewerw.fsf@gitster.g>
- In-Reply-To
- <20220301002613.1459916-1-emilyshaffer@google.com>
Emily Shaffer <emilyshaffer@google.com> writes:
> One thing I'm not sure about: in the tests, I check whether the config > is set, but not what the boolean value of it is. Is there a better way > to do that?
Are you looking for value normalization during both setting and retrieving, i.e.
$ git config vari.able 0 ;# or "no" or "off" $ git config --type=bool vari.abble false $ git config vari.able 1 ;# or "yes" or "on" $ git config --type=bool vari.abble true
$ git config --type=bool vari.able yes ;# or "1" or "on" $ git config vari.able true