From: Junio C Hamano Date: Thu, 17 Nov 2005 22:57:54 GMT Subject: Re: Add git-config-set, a simple helper for scripts to set config variables Message-ID: <7vveyqswzx.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > 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.