Re: Add git-config-set, a simple helper for scripts to set config variables
- From
Junio C Hamano <junkio@cox.net>
- Date
- Nov 17, 2005, 22:57 UTC
- Message-ID
- <7vveyqswzx.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.63.0511172244230.18285@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 17 quoted lines
> This is meant for the end user, who cannot be expected to edit > .git/config by hand. > > Example: > > git-config-set core.filemode true > > will set filemode in the section [core] to true, > > git-config-set --unset core.filemode > > will remove the entry (failing if it is not there), and > > git-config-set --unset diff.twohead ^recar > > will remove the unique entry whose value matches the regex "^recar" > (failing if there is no unique such entry).
It's kinda funny that your users cannot edit a plain text file with an editor, but know how to do regex ;-).
I think the true value of this is that Porcelain scripts can muck with configuration files.