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>
Elijah Newren committed
May 16, 2023 at 06:33 UTC
eaa966db798ca8b0313396f11fe7edfa78c2ddae
2 files changed
+2
-3
cache.h
-3
@@ -523,9 +523,6 @@ int add_files_to_cache(struct repository *repo, const char *prefix,
523
const struct pathspec *pathspec, int include_sparse,
524
int flags);
525
526
-/* diff.c */
527
-extern int diff_auto_refresh_index;
528
-
526
/* ls-files */
527
void overlay_tree_on_index(struct index_state *istate,
528
const char *tree_name, const char *prefix);
diff.h
+2
@@ -701,4 +701,6 @@ void print_stat_summary(FILE *fp, int files,
701
int insertions, int deletions);
702
void setup_diff_pager(struct diff_options *);
703
704
+extern int diff_auto_refresh_index;
705
+
706
#endif /* DIFF_H */