aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-12 11:49:27 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-12 11:49:27 -0700
commit6aa33f4035d547ac2bd629b1cfd9c46262809d73 (patch)
tree539198e1f042cdef705e654df8d995b6c2747227 /cache.h
parent26a2d8ae898f5442904dd2fbf89c5fe34480ea85 (diff)
downloadgit-6aa33f4035d547ac2bd629b1cfd9c46262809d73.tar.gz
git-6aa33f4035d547ac2bd629b1cfd9c46262809d73.tar.xz
Abstract out the "name <email> date" handling of commit-tree.c
We'll want to use it for the tagging too.
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index f0eecb3d4..1376700f1 100644
--- a/cache.h
+++ b/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);