summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config_parse.c3
-rw-r--r--src/config_parse.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/config_parse.c b/src/config_parse.c
index 282aabe17..6e85bbe0d 100644
--- a/src/config_parse.c
+++ b/src/config_parse.c
@@ -11,6 +11,9 @@
#include <ctype.h>
+const char *git_config_escapes = "ntb\"\\";
+const char *git_config_escaped = "\n\t\b\"\\";
+
static void set_parse_error(git_config_parser *reader, int col, const char *error_str)
{
giterr_set(GITERR_CONFIG, "failed to parse config file: %s (in %s:%"PRIuZ", column %d)",
diff --git a/src/config_parse.h b/src/config_parse.h
index 6650b87f3..81a13fceb 100644
--- a/src/config_parse.h
+++ b/src/config_parse.h
@@ -12,8 +12,8 @@
#include "oid.h"
#include "parse.h"
-static const char *git_config_escapes = "ntb\"\\";
-static const char *git_config_escaped = "\n\t\b\"\\";
+extern const char *git_config_escapes;
+extern const char *git_config_escaped;
typedef struct config_file {
git_oid checksum;