Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
environment: rename 'namespace' variables
author
Brandon Williams
<bmwill@google.com>
Wed, 14 Feb 2018 18:59:55 +0000
(10:59 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 22 Feb 2018 18:08:05 +0000
(10:08 -0800)
Rename C++ keyword in order to bring the codebase closer to being able
to be compiled with a C++ compiler.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
environment.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
c2a46a7
)
diff --git
a/environment.c
b/environment.c
index 98f77ea955fba9fcfbd9186ef73d6c72dad8ca94..270ba98b53bd72708361b21da94112c167dee1c1 100644
(file)
--- a/
environment.c
+++ b/
environment.c
@@
-98,7
+98,7
@@
int ignore_untracked_cache_config;
/* This is set by setup_git_dir_gently() and/or git_default_config() */
char *git_work_tree_cfg;
/* This is set by setup_git_dir_gently() and/or git_default_config() */
char *git_work_tree_cfg;
-static char *namespace;
+static char *
git_
namespace;
static const char *super_prefix;
static const char *super_prefix;
@@
-156,8
+156,8
@@
void setup_git_env(void)
free(git_replace_ref_base);
git_replace_ref_base = xstrdup(replace_ref_base ? replace_ref_base
: "refs/replace/");
free(git_replace_ref_base);
git_replace_ref_base = xstrdup(replace_ref_base ? replace_ref_base
: "refs/replace/");
- free(namespace);
- namespace = expand_namespace(getenv(GIT_NAMESPACE_ENVIRONMENT));
+ free(
git_
namespace);
+
git_
namespace = expand_namespace(getenv(GIT_NAMESPACE_ENVIRONMENT));
shallow_file = getenv(GIT_SHALLOW_FILE_ENVIRONMENT);
if (shallow_file)
set_alternate_shallow_file(shallow_file, 0);
shallow_file = getenv(GIT_SHALLOW_FILE_ENVIRONMENT);
if (shallow_file)
set_alternate_shallow_file(shallow_file, 0);
@@
-191,9
+191,9
@@
const char *get_git_common_dir(void)
const char *get_git_namespace(void)
{
const char *get_git_namespace(void)
{
- if (!namespace)
+ if (!
git_
namespace)
BUG("git environment hasn't been setup");
BUG("git environment hasn't been setup");
- return namespace;
+ return
git_
namespace;
}
const char *strip_namespace(const char *namespaced_ref)
}
const char *strip_namespace(const char *namespaced_ref)