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

Re: [PATCH 1/2] user-manual: add global config section

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 11, 2009, 22:27 UTC
Message-ID
<20091011222729.GA5114@progeny.tock>
In-Reply-To
<1255293786-17293-2-git-send-email-felipe.contreras@gmail.com>
Felipe Contreras wrote:
Show 5 quoted lines
> So that users get to know how to configure git from the get-to with good
> practical example (color.ui = auto) that most people would probably like
> anyway.
> 
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Good idea.  Some comments:
> +Git's configuration is distributed among different locations--this manual will
> +only to deal with 'global' (for the user) and 'repository' variables, where
> +'repository' variables take precedence over 'global' ones.

What are these different locations you speak of? If git’s configuration is complicated to deal with, maybe that is something that could be improved.

This is very early in the manual, where every word counts. I am not very good at wording and do not have any better suggestions, but would it be possible to more efficiently convey this:

	Git reads its per-user configuration from ~/.gitignore.
	That file can also be manipulated with the "git config"
	command, which can be convenient in scripts or when using
	operating systems like Windows where it is not clear where
	the home directory is.
	For example, if your terminal supports it, you can tell Git
	to use color in the output for commands such as "git diff"
	with "git config --global color.ui auto".
	For more information and a list of possible settings, see
	git-config(1).

By the way, this reminds me that I am not sure git-config(1) conveys the list of configuration items in an ideal way. It can be easy to dismiss that page as plumbing documentation when seeing it for the first time. Should we ship a sample .gitconfig with all items included and comments describing them, or a separate gitconfig(5)? Either would be easy to generate from config.txt.

Thoughts? Jonathan

Previous: Felipe ContrerasNext: Junio C Hamano
Message 4 of 13 in “user-manual: reorganize the configuration steps”
  1. 0/2 user-manual: reorganize the configuration stepsFelipe Contreras, Oct 11, 2009
  2. 1/2 user-manual: add global config sectionFelipe Contreras, Oct 11, 2009
  3. 2/2 user-manual: simplify the user configurationFelipe Contreras, Oct 11, 2009
  4. Jonathan NiederOct 11, 2009
  5. Junio C HamanoOct 12, 2009
  6. Michael J GruberOct 12, 2009
  7. Felipe ContrerasOct 12, 2009
  8. Michael J GruberOct 13, 2009
  9. Felipe ContrerasOct 14, 2009
  10. Michael J GruberOct 14, 2009
  11. Junio C HamanoOct 14, 2009
  12. J. Bruce FieldsOct 14, 2009
  13. Felipe ContrerasOct 14, 2009

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.