Git fork

mailmap, quote: move declarations of global vars to correct unit

Since earlier commits removed the inclusion of cache.h from mailmap.c
and quote.c, it feels odd to have the extern declarations of
global variables in cache.h rather than the actual header included
by the source file. Move these global variable extern declarations
from cache.h to mailmap.c and quote.c.

Signed-off-by: Elijah Newren <newren@gmail.com>
Acked-by: Calvin Wan <calvinwan@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Elijah Newren and committed by
Junio C Hamano
47115569 b7b189cd

+6 -5
-5
cache.h
··· 599 599 extern int verify_index_checksum; 600 600 extern int verify_ce_order; 601 601 602 - extern int quote_path_fully; 603 - 604 602 #define MTIME_CHANGED 0x0001 605 603 #define CTIME_CHANGED 0x0002 606 604 #define OWNER_CHANGED 0x0004 ··· 654 652 655 653 /* Dumb servers support */ 656 654 int update_server_info(int); 657 - 658 - extern const char *git_mailmap_file; 659 - extern const char *git_mailmap_blob; 660 655 661 656 #define COPY_READ_ERROR (-2) 662 657 #define COPY_WRITE_ERROR (-3)
+1
config.c
··· 18 18 #include "ident.h" 19 19 #include "repository.h" 20 20 #include "lockfile.h" 21 + #include "mailmap.h" 21 22 #include "exec-cmd.h" 22 23 #include "strbuf.h" 23 24 #include "quote.h"
+3
mailmap.h
··· 3 3 4 4 struct string_list; 5 5 6 + extern const char *git_mailmap_file; 7 + extern const char *git_mailmap_blob; 8 + 6 9 int read_mailmap(struct string_list *map); 7 10 void clear_mailmap(struct string_list *map); 8 11
+2
quote.h
··· 3 3 4 4 struct strbuf; 5 5 6 + extern int quote_path_fully; 7 + 6 8 /* Help to copy the thing properly quoted for the shell safety. 7 9 * any single quote is replaced with '\'', any exclamation point 8 10 * is replaced with '\!', and the whole thing is enclosed in a