move git_default_* variables to ident.c
There's no reason anybody outside of ident.c should access these directly (they should use the new accessors which make sure the variables are initialized), so we can make them file-scope statics. While we're at it, move user_ident_explicitly_given into ident.c; while still globally visible, it makes more sense to reside with the ident code. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
9597921b6c
commit
2d4b4fcebd
@ -11,9 +11,6 @@
|
||||
#include "refs.h"
|
||||
#include "fmt-merge-msg.h"
|
||||
|
||||
char git_default_email[MAX_GITNAME];
|
||||
char git_default_name[MAX_GITNAME];
|
||||
int user_ident_explicitly_given;
|
||||
int trust_executable_bit = 1;
|
||||
int trust_ctime = 1;
|
||||
int has_symlinks = 1;
|
||||
|
||||
Reference in New Issue
Block a user