]> git.ipfire.org Git - thirdparty/git.git/blobdiff - cache.h
ident: add the ability to provide a "fallback identity"
[thirdparty/git.git] / cache.h
diff --git a/cache.h b/cache.h
index 7b6b89fc4c0c285efb29265c5ae10a01d80ffcbf..611e554dea0c2065d4f376f6710e71f586aead28 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1491,6 +1491,11 @@ extern const char *git_sequence_editor(void);
 extern const char *git_pager(int stdout_is_tty);
 extern int is_terminal_dumb(void);
 extern int git_ident_config(const char *, const char *, void *);
+/*
+ * Prepare an ident to fall back on if the user didn't configure it.
+ * Must be called before any other function from the ident API.
+ */
+void prepare_fallback_ident(const char *name, const char *email);
 extern void reset_ident_date(void);
 
 struct ident_split {