git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] config.c: Remove unused git_config_global() function
@ 2011-05-31 17:23 Ramsay Jones
  2011-05-31 17:51 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Ramsay Jones @ 2011-05-31 17:23 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: GIT Mailing-list


Commit 8f323c00 (drop support for GIT_CONFIG_NOGLOBAL, 15-03-2011)
removed the git_config_global() function, among other things, since
it is no longer required. Unfortunately, this function has since
been unintentionally restored; I suspect by merge commit 25b86e45
(Merge branch 'jk/maint-config-alias-fix' into next, 25-05-2011).

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---

Hi Junio,

A few days ago, when the next branch was @ d10669c, I noticed that
"make sparse" on next was complaining thus:

    config.c:828:5: warning: symbol 'git_config_global' was not \
        declared. Should it be static?

However, I remembered that this function had recently been removed, so
I took a quick look ...

ATB,
Ramsay Jones

 config.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/config.c b/config.c
index a8267e9..e0b3b80 100644
--- a/config.c
+++ b/config.c
@@ -825,11 +825,6 @@ int git_config_system(void)
 	return !git_env_bool("GIT_CONFIG_NOSYSTEM", 0);
 }
 
-int git_config_global(void)
-{
-	return !git_env_bool("GIT_CONFIG_NOGLOBAL", 0);
-}
-
 int git_config_early(config_fn_t fn, void *data, const char *repo_config)
 {
 	int ret = 0, found = 0;
-- 
1.7.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-31 18:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-31 17:23 [PATCH] config.c: Remove unused git_config_global() function Ramsay Jones
2011-05-31 17:51 ` Junio C Hamano
2011-05-31 18:21   ` Effectively navigating branch history (was: Re: [PATCH] config.c: Remove unused git_config_global() function) Stephen Bash
2011-05-31 18:40     ` Effectively navigating branch history Junio C Hamano
2011-05-31 18:51       ` Stephen Bash

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).