@@ -23,6 +23,9 @@
#include "apply.h"
#include "entry.h"
+static char *apply_default_whitespace;
+static char *apply_default_ignorewhitespace;
+
struct gitdiff_data {
struct strbuf *root;
int linenr;
@@ -944,8 +944,6 @@ extern int assume_unchanged;
extern int prefer_symlink_refs;
extern int warn_ambiguous_refs;
extern int warn_on_object_refname_ambiguity;
-extern char *apply_default_whitespace;
-extern char *apply_default_ignorewhitespace;
extern const char *git_attributes_file;
extern const char *git_hooks_path;
extern int zlib_compression_level;
@@ -36,8 +36,6 @@ int repository_format_precious_objects;
int repository_format_worktree_config;
const char *git_commit_encoding;
const char *git_log_output_encoding;
-char *apply_default_whitespace;
-char *apply_default_ignorewhitespace;
const char *git_attributes_file;
const char *git_hooks_path;
int zlib_compression_level = Z_BEST_SPEED;
These variables are only set and used in this file, so they can become `static`. Signed-off-by: Ben Boeckel <mathstuf@gmail.com> --- apply.c | 3 +++ cache.h | 2 -- environment.c | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-)