summaryrefslogtreecommitdiff
path: root/ident.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-17 21:59:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-17 21:59:36 (GMT)
commit1a893064d7b403625896a2c8bdab39f0f7db61d5 (patch)
tree40dd24536b59a9540826f303207e2488d91fe0f2 /ident.c
parentfc6f19fe2b49928dcb4d2dfac88ca38a47d64cde (diff)
downloadgit-1a893064d7b403625896a2c8bdab39f0f7db61d5.zip
git-1a893064d7b403625896a2c8bdab39f0f7db61d5.tar.gz
git-1a893064d7b403625896a2c8bdab39f0f7db61d5.tar.bz2
user_ident_sufficiently_given(): refactor the logic to be usable from elsewhere
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ident.c')
-rw-r--r--ident.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ident.c b/ident.c
index 26409b2..248f769 100644
--- a/ident.c
+++ b/ident.c
@@ -259,3 +259,8 @@ const char *git_committer_info(int flag)
getenv("GIT_COMMITTER_DATE"),
flag);
}
+
+int user_ident_sufficiently_given(void)
+{
+ return user_ident_explicitly_given;
+}