git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 2 of 3 in “Add git-config-set, a simple helper for scripts to set config variables”
  1. Johannes SchindelinNov 17, 2005
  2. Junio C HamanoNov 17, 2005
  3. Johannes SchindelinNov 17, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.