user_ident_sufficiently_given(): refactor the logic to be usable from elsewhere
[gitweb.git] / ident.c
diff --git a/ident.c b/ident.c
index 26409b2a1b191765706265c2aa6d2ae163ba5bab..248f769fd3a79627b1d767c8f00455579a16a03d 100644 (file)
--- 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;
+}