summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-10-15 09:47:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-16 03:59:57 (GMT)
commit501afcb8b021611758bf07d0e18fa8ff7fbbed73 (patch)
tree57f92e7957ba23bf9b0315825742c6ae7815c098 /git-compat-util.h
parent564be791f33a72d28497420dafbd3b272b9a1380 (diff)
downloadgit-501afcb8b021611758bf07d0e18fa8ff7fbbed73.zip
git-501afcb8b021611758bf07d0e18fa8ff7fbbed73.tar.gz
git-501afcb8b021611758bf07d0e18fa8ff7fbbed73.tar.bz2
mingw: use domain information for default email
When a user is registered in a Windows domain, it is really easy to obtain the email address. So let's do that. Suggested by Lutz Roeder. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 5f2e909..71779cb 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -382,6 +382,10 @@ static inline char *git_find_last_dir_sep(const char *path)
#define find_last_dir_sep git_find_last_dir_sep
#endif
+#ifndef query_user_email
+#define query_user_email() NULL
+#endif
+
#if defined(__HP_cc) && (__HP_cc >= 61000)
#define NORETURN __attribute__((noreturn))
#define NORETURN_PTR