Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-05-16 09:33:53 +0300
committerJunio C Hamano <gitster@pobox.com>2023-06-21 23:39:53 +0300
commiteaa966db798ca8b0313396f11fe7edfa78c2ddae (patch)
tree609ad4b5248fe89e6a8f106fc4bf8465cba2c739
parentfbffdfb11cba61dbce46442d0b136dcf2ddaeadc (diff)
diff.h: move declaration for global in diff.c from cache.h
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--cache.h3
-rw-r--r--diff.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/cache.h b/cache.h
index b79802a463..08f6fbd801 100644
--- a/cache.h
+++ b/cache.h
@@ -523,9 +523,6 @@ int add_files_to_cache(struct repository *repo, const char *prefix,
const struct pathspec *pathspec, int include_sparse,
int flags);
-/* diff.c */
-extern int diff_auto_refresh_index;
-
/* ls-files */
void overlay_tree_on_index(struct index_state *istate,
const char *tree_name, const char *prefix);
diff --git a/diff.h b/diff.h
index 6c10ce289d..5a0c91bb48 100644
--- a/diff.h
+++ b/diff.h
@@ -701,4 +701,6 @@ void print_stat_summary(FILE *fp, int files,
int insertions, int deletions);
void setup_diff_pager(struct diff_options *);
+extern int diff_auto_refresh_index;
+
#endif /* DIFF_H */