Thread (73 messages) 73 messages, 8 authors, 2022-01-25

Re: [RFC PATCH 1/2] config: make git_config_include() static

flat view

From: Jeff King <hidden>
Date: 2021-10-12 23:07:34

On Tue, Oct 12, 2021 at 03:57:22PM -0700, Jonathan Tan wrote:
It is not used from outside the file in which it is declared.
Makes sense. We used to use it from builtin/config.c, but that went away
in e895589883 (git-config: use git_config_with_options, 2012-10-23).
quoted hunk ↗ jump to hunk
diff --git a/config.h b/config.h
index 147f5e0490..b11b0be09a 100644
--- a/config.h
+++ b/config.h
@@ -126,6 +126,8 @@ int git_default_config(const char *, const char *, void *);
 /**
  * Read a specific file in git-config format.
  * This function takes the same callback and data parameters as `git_config`.
+ *
+ * Unlike git_config(), this function does not respect includes.
  */
Breaking out the relevant caller-facing parts of the documentation like
this is a nice touch.

And the rest of the patch looks good to me.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help