diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-10-26 14:22:15 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-26 14:22:15 +0900 |
commit | 16ce0b92bdaa50ca8ebb318829e8fde65299d676 (patch) | |
tree | 50eaf9377fe649296a66e7907f8c052e9fa89ebc /compat/mingw.h | |
parent | Merge branch 'ld/p4-unshelve' (diff) | |
parent | mingw: use domain information for default email (diff) | |
download | tgif-16ce0b92bdaa50ca8ebb318829e8fde65299d676.tar.xz |
Merge branch 'js/mingw-default-ident'
The logic to select the default user name and e-mail on Windows has
been improved.
* js/mingw-default-ident:
mingw: use domain information for default email
getpwuid(mingw): provide a better default for the user name
getpwuid(mingw): initialize the structure only once
Diffstat (limited to 'compat/mingw.h')
-rw-r--r-- | compat/mingw.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h index 571019d0bd..f31dcff2be 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -424,6 +424,8 @@ static inline void convert_slashes(char *path) int mingw_offset_1st_component(const char *path); #define offset_1st_component mingw_offset_1st_component #define PATH_SEP ';' +extern char *mingw_query_user_email(void); +#define query_user_email mingw_query_user_email #if !defined(__MINGW64_VERSION_MAJOR) && (!defined(_MSC_VER) || _MSC_VER < 1800) #define PRIuMAX "I64u" #define PRId64 "I64d" |