X-Git-Url: https://git.tokkee.org/?p=git.git;a=blobdiff_plain;f=cache.h;h=a8aceb5aee4fef0d7b06693921dea319690965d6;hp=e5e1aa4e15a336927376c63651d88d63f02c44bf;hb=HEAD;hpb=1e4d0875acbce3c881bc1de66c8900cdc240ebe8 diff --git a/cache.h b/cache.h index e5e1aa4e1..a8aceb5ae 100644 --- a/cache.h +++ b/cache.h @@ -928,6 +928,22 @@ extern const char *fmt_name(const char *name, const char *email); extern const char *git_editor(void); extern const char *git_pager(int stdout_is_tty); +struct ident_split { + const char *name_begin; + const char *name_end; + const char *mail_begin; + const char *mail_end; + const char *date_begin; + const char *date_end; + const char *tz_begin; + const char *tz_end; +}; +/* + * Signals an success with 0, but time part of the result may be NULL + * if the input lacks timestamp and zone + */ +extern int split_ident_line(struct ident_split *, const char *, int); + struct checkout { const char *base_dir; int base_dir_len;