]> git.ipfire.org Git - thirdparty/git.git/commitdiff
diff.h: move declaration for global in diff.c from cache.h
authorElijah Newren <newren@gmail.com>
Tue, 16 May 2023 06:33:53 +0000 (06:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Jun 2023 20:39:53 +0000 (13:39 -0700)
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
diff.h

diff --git a/cache.h b/cache.h
index b79802a4639ab1b5eaf0b289e3624b570607ba18..08f6fbd801d890189b5d3078f37ab470a7704466 100644 (file)
--- 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 6c10ce289dad97aa5384f698aa9451a769830ead..5a0c91bb482efe3f77c1a8fc83674ec98c34ab2b 100644 (file)
--- 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 */