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

[PATCH] Update git-config documentation

From
Andrew Ruder <andy@aeruder.net>
Date
Apr 19, 2007, 03:03 UTC
Message-ID
<20070419030337.GD19402@bowser.ruder>
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
Previous: Andrew Ruder
Message 18 of 18 in “Add policy on user-interface changes”
  1. Add policy on user-interface changesAndrew Ruder, Apr 16, 2007
  2. Update git-am documentationAndrew Ruder, Apr 16, 2007
  3. Junio C HamanoApr 16, 2007
  4. Update git-am documentationAndrew Ruder, Apr 16, 2007
  5. Junio C HamanoApr 16, 2007
  6. Update git-am documentationAndrew Ruder, Apr 16, 2007
  7. Update git-applymbox documentationAndrew Ruder, Apr 16, 2007
  8. Update git-applymbox documentationAndrew Ruder, Apr 16, 2007
  9. Update git-annotate/git-blame documentationAndrew Ruder, Apr 16, 2007
  10. Alex RiesenApr 16, 2007
  11. Andrew RuderApr 16, 2007
  12. Junio C HamanoApr 16, 2007
  13. Update git-annotate/git-blame documentationAndrew Ruder, Apr 17, 2007
  14. Update git-apply documentationAndrew Ruder, Apr 16, 2007
  15. Update git-archive documentationAndrew Ruder, Apr 19, 2007
  16. Update git-cherry-pick documentationAndrew Ruder, Apr 19, 2007
  17. Fix unmatched emphasis tag in git-tutorialAndrew Ruder, Apr 19, 2007
  18. Update git-config documentationAndrew Ruder, Apr 19, 2007

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.