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

[PATCH] config.c: make git_env_bool() static

From
しらいしななこ <nanako3@lavabit.com>
Date
Jun 18, 2008, 23:21 UTC
Message-ID
<20080619082111.6117@nanako3.lavabit.com>
This function is not used by any other file.
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
---
 cache.h  |    1 -
 config.c |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/cache.h b/cache.h
index 81b7e17..a82e493 100644
--- a/cache.h
+++ b/cache.h
@@ -735,7 +735,6 @@ extern int git_config_set_multivar(const char *, const char *, const char *, int
 extern int git_config_rename_section(const char *, const char *);
 extern const char *git_etc_gitconfig(void);
 extern int check_repository_format_version(const char *var, const char *value, void *cb);
-extern int git_env_bool(const char *, int);
 extern int git_config_system(void);
 extern int git_config_global(void);
 extern int config_error_nonbool(const char *);
diff --git a/config.c b/config.c
index c2f2bbb..04d97e3 100644
--- a/config.c
+++ b/config.c
@@ -549,7 +549,7 @@ const char *git_etc_gitconfig(void)
 	return system_wide;
 }
 
-int git_env_bool(const char *k, int def)
+static int git_env_bool(const char *k, int def)
 {
 	const char *v = getenv(k);
 	return v ? git_config_bool(k, v) : def;
-- 
1.5.5.4
Message 1 of 1 in “config.c: make git_env_bool() static”
  1. config.c: make git_env_bool() staticしらいしななこ, Jun 18, 2008

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.