From: Andrew Ruder <andy@aeruder.net>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: [PATCH] Update git-config documentation
Date: Wed, 18 Apr 2007 22:03:37 -0500 [thread overview]
Message-ID: <20070419030337.GD19402@bowser.ruder> (raw)
In-Reply-To: <20070416053525.GA18821@localdomain>
Documentation/git-config.txt: Added documentation for --system
Documentation/builtin-config.c: Added --system to the short usage
Signed-off-by: Andrew Ruder <andy@aeruder.net>
---
Documentation/git-config.txt | 24 ++++++++++++++----------
builtin-config.c | 2 +-
2 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index c759efb..280ef20 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -9,16 +9,16 @@ git-config - Get and set repository or global options
SYNOPSIS
--------
[verse]
-'git-config' [--global] [type] name [value [value_regex]]
-'git-config' [--global] [type] --add name value
-'git-config' [--global] [type] --replace-all name [value [value_regex]]
-'git-config' [--global] [type] --get name [value_regex]
-'git-config' [--global] [type] --get-all name [value_regex]
-'git-config' [--global] [type] --unset name [value_regex]
-'git-config' [--global] [type] --unset-all name [value_regex]
-'git-config' [--global] [type] --rename-section old_name new_name
-'git-config' [--global] [type] --remove-section name
-'git-config' [--global] -l | --list
+'git-config' [--system | --global] [type] name [value [value_regex]]
+'git-config' [--system | --global] [type] --add name value
+'git-config' [--system | --global] [type] --replace-all name [value [value_regex]]
+'git-config' [--system | --global] [type] --get name [value_regex]
+'git-config' [--system | --global] [type] --get-all name [value_regex]
+'git-config' [--system | --global] [type] --unset name [value_regex]
+'git-config' [--system | --global] [type] --unset-all name [value_regex]
+'git-config' [--system | --global] [type] --rename-section old_name new_name
+'git-config' [--system | --global] [type] --remove-section name
+'git-config' [--system | --global] -l | --list
DESCRIPTION
-----------
@@ -76,6 +76,10 @@ OPTIONS
--global::
Use global ~/.gitconfig file rather than the repository .git/config.
+--system::
+ Use system-wide $(prefix)/etc/gitconfig rather than the repository
+ .git/config.
+
--remove-section::
Remove the given section from the configuration file.
diff --git a/builtin-config.c b/builtin-config.c
index dfa403b..b2515f7 100644
--- a/builtin-config.c
+++ b/builtin-config.c
@@ -2,7 +2,7 @@
#include "cache.h"
static const char git_config_set_usage[] =
-"git-config [ --global ] [ --bool | --int ] [--get | --get-all | --get-regexp | --replace-all | --add | --unset | --unset-all] name [value [value_regex]] | --rename-section old_name new_name | --remove-section name | --list";
+"git-config [ --global | --system ] [ --bool | --int ] [--get | --get-all | --get-regexp | --replace-all | --add | --unset | --unset-all] name [value [value_regex]] | --rename-section old_name new_name | --remove-section name | --list";
static char *key;
static regex_t *key_regexp;
--
1.5.1.1.116.g8c4c
prev parent reply other threads:[~2007-04-19 3:05 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-16 5:35 [PATCH] Add policy on user-interface changes Andrew Ruder
2007-04-16 6:20 ` [PATCH] Update git-am documentation Andrew Ruder
2007-04-16 6:56 ` Junio C Hamano
2007-04-16 7:21 ` Andrew Ruder
2007-04-16 7:48 ` Junio C Hamano
2007-04-16 12:47 ` Andrew Ruder
2007-04-16 6:20 ` [PATCH] Update git-applymbox documentation Andrew Ruder
2007-04-16 6:40 ` Andrew Ruder
2007-04-16 6:20 ` [PATCH] Update git-annotate/git-blame documentation Andrew Ruder
2007-04-16 7:24 ` Alex Riesen
2007-04-16 7:26 ` Andrew Ruder
2007-04-16 7:52 ` Junio C Hamano
2007-04-17 2:45 ` Andrew Ruder
2007-04-16 6:20 ` [PATCH] Update git-apply documentation Andrew Ruder
2007-04-19 3:03 ` [PATCH] Update git-archive documentation Andrew Ruder
2007-04-19 3:03 ` [PATCH] Update git-cherry-pick documentation Andrew Ruder
2007-04-19 3:03 ` [PATCH] Fix unmatched emphasis tag in git-tutorial Andrew Ruder
2007-04-19 3:03 ` Andrew Ruder [this message]
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=20070419030337.GD19402@bowser.ruder \
--to=andy@aeruder.net \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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;
as well as URLs for NNTP newsgroup(s).