diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-03-07 09:59:53 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-07 09:59:53 +0900 |
commit | 4e021dc28e71f9d820f7cf18567d9a86df326753 (patch) | |
tree | 7d3b0cf7a0da8c1ad7d77fcf72b9ecbe5dd1319e /cache.h | |
parent | 42977bf5c7306e4c2dded5353f39cf087cf23a1f (diff) | |
parent | 39ab4d0951ba64edcfae7809740715991b44fa6d (diff) | |
download | git-4e021dc28e71f9d820f7cf18567d9a86df326753.tar.gz |
Merge branch 'wh/author-committer-ident-config'
Four new configuration variables {author,committer}.{name,email}
have been introduced to override user.{name,email} in more specific
cases.
* wh/author-committer-ident-config:
config: allow giving separate author and committer idents
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1506,10 +1506,19 @@ int date_overflows(timestamp_t date); #define IDENT_STRICT 1 #define IDENT_NO_DATE 2 #define IDENT_NO_NAME 4 + +enum want_ident { + WANT_BLANK_IDENT, + WANT_AUTHOR_IDENT, + WANT_COMMITTER_IDENT +}; + extern const char *git_author_info(int); extern const char *git_committer_info(int); -extern const char *fmt_ident(const char *name, const char *email, const char *date_str, int); -extern const char *fmt_name(const char *name, const char *email); +extern const char *fmt_ident(const char *name, const char *email, + enum want_ident whose_ident, + const char *date_str, int); +extern const char *fmt_name(enum want_ident); extern const char *ident_default_name(void); extern const char *ident_default_email(void); extern const char *git_editor(void); |