Re: [PATCH/RFC] config: Add --null/-z option for null-delimted output
- From
Frank Lichtenheld <frank@lichtenheld.de>
- Date
- Jun 22, 2007, 12:02 UTC
- Message-ID
- <20070622120217.GP19725@planck.djpig.de>
- In-Reply-To
- <200706220156.01175.jnareb@gmail.com>
On Fri, Jun 22, 2007 at 01:56:00AM +0200, Jakub Narebski wrote:
Show 10 quoted lines
> On Mon, 18 Jun 2007, Frank Lichtenheld wrote: > > Note the FIXME. Does anyone remember the reason why --get-regexp > > and --list use different output format? > > I don't know, but at least two scripts use --get-regexp, namely > git-remote and git-submodule. So we would have to be careful about > changing that. > > > I would be enough to add the following to your patch:
Yeah, I found this a but ugly though so I left it out of the first patch in case someone had a better idea. Will include that in the second version (which will also include documentation).
Show 5 quoted lines
> By the way, I have tried to use git-config --null to redo config > file parsing in gitweb, so one git-config call would be needed for > all the config. I have noticed that --bool option description does > not describe the observed behavior fully. For example it returns > 'true' not only for '1', but for any integer != 0, including 0xdeadbeef.
Yeah, the description of --bool is very incomplete. Note that empty values are false, and keys without values are true. I think this all are valid choices, but they are indeed not documented.
Gruesse.
-- Frank Lichtenheld <frank@lichtenheld.de> www: http://www.djpig.de/