Skip to content

Commit eaa966d

Browse files
newrengitster
authored andcommitted
diff.h: move declaration for global in diff.c from cache.h
Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fbffdfb commit eaa966d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cache.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,6 @@ int add_files_to_cache(struct repository *repo, const char *prefix,
523523
const struct pathspec *pathspec, int include_sparse,
524524
int flags);
525525

526-
/* diff.c */
527-
extern int diff_auto_refresh_index;
528-
529526
/* ls-files */
530527
void overlay_tree_on_index(struct index_state *istate,
531528
const char *tree_name, const char *prefix);

diff.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,4 +701,6 @@ void print_stat_summary(FILE *fp, int files,
701701
int insertions, int deletions);
702702
void setup_diff_pager(struct diff_options *);
703703

704+
extern int diff_auto_refresh_index;
705+
704706
#endif /* DIFF_H */

0 commit comments

Comments
 (0)