summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9c3c22e)
raw | patch | inline | side by side (parent: 9c3c22e)
author | Jeff King <peff@peff.net> | |
Fri, 17 Feb 2012 08:18:38 +0000 (03:18 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 17 Feb 2012 15:52:41 +0000 (07:52 -0800) |
The first change simply drops some parentheses to make a
statement more clear. The seconds clarifies that almost
nobody wants to call git_config_early.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
statement more clear. The seconds clarifies that almost
nobody wants to call git_config_early.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-config.txt | patch | blob | history |
index f428c5c4864a577f3955c9efc66b52c56a8a713e..01f64d187f9ddf0538dbb475a5f69667136fd7e8 100644 (file)
Config files are parsed linearly, and each variable found is passed to a
caller-provided callback function. The callback function is responsible
for any actions to be taken on the config option, and is free to ignore
-some options (it is not uncommon for the configuration to be parsed
+some options. It is not uncommon for the configuration to be parsed
several times during the run of a git program, with different callbacks
-picking out different variables useful to themselves).
+picking out different variables useful to themselves.
A config callback function takes three parameters:
repo-specific one; by overwriting, the higher-priority repo-specific
value is left at the end).
-There is a special version of `git_config` called `git_config_early`
-that takes an additional parameter to specify the repository config.
-This should be used early in a git program when the repository location
-has not yet been determined (and calling the usual lazy-evaluation
-lookup rules would yield an incorrect location).
+There is a special version of `git_config` called `git_config_early`.
+This version takes an additional parameter to specify the repository
+config, instead of having it looked up via `git_path`. This is useful
+early in a git program before the repository has been found. Unless
+you're working with early setup code, you probably don't want to use
+this.
Reading Specific Files
----------------------