Abstract out the "name <email> date" handling of commit-tree.c
We'll want to use it for the tagging too.
This commit is contained in:
3
cache.h
3
cache.h
@ -211,6 +211,9 @@ const char *show_date(unsigned long time, int timezone);
|
||||
void parse_date(const char *date, char *buf, int bufsize);
|
||||
void datestamp(char *buf, int bufsize);
|
||||
|
||||
extern int setup_ident(void);
|
||||
extern char *get_ident(const char *name, const char *email, const char *date_str);
|
||||
|
||||
static inline void *xmalloc(size_t size)
|
||||
{
|
||||
void *ret = malloc(size);
|
||||
|
Reference in New Issue
Block a user