Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: Add git-config-set, a simple helper for scripts to set config variables
Date: Thu, 17 Nov 2005 14:57:54 -0800	[thread overview]
Message-ID: <7vveyqswzx.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.63.0511172244230.18285@wbgn013.biozentrum.uni-wuerzburg.de> (Johannes Schindelin's message of "Thu, 17 Nov 2005 22:44:55 +0100 (CET)")

Johannes Schindelin <Johannes.Schindelin@gmx.de> 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.

  reply	other threads:[~2005-11-17 22:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-17 21:44 Add git-config-set, a simple helper for scripts to set config variables Johannes Schindelin
2005-11-17 22:57 ` Junio C Hamano [this message]
2005-11-17 23:24   ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vveyqswzx.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox