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:
Linus Torvalds
2005-07-12 11:49:27 -07:00
parent 26a2d8ae89
commit 6aa33f4035
4 changed files with 156 additions and 71 deletions

View File

@ -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);