summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
authorLukas Sandström <lukass@etek.chalmers.se>2006-06-13 20:21:50 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-19 05:10:28 (GMT)
commit34488e3c375d159506d5d98e012f3b36e7cd9fe7 (patch)
tree1e2b423b920b58b81933be69d1005379e266d5d2 /builtin.h
parente690e84315de1bb806eb2292f8a87cbee30b75ab (diff)
downloadgit-34488e3c375d159506d5d98e012f3b36e7cd9fe7.zip
git-34488e3c375d159506d5d98e012f3b36e7cd9fe7.tar.gz
git-34488e3c375d159506d5d98e012f3b36e7cd9fe7.tar.bz2
Make git-mailinfo a builtin
[jc: with a bit of constness tightening] Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin.h')
-rw-r--r--builtin.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin.h b/builtin.h
index 92e1e1b..46671e6 100644
--- a/builtin.h
+++ b/builtin.h
@@ -1,6 +1,8 @@
#ifndef BUILTIN_H
#define BUILTIN_H
+#include <stdio.h>
+
#ifndef PATH_MAX
# define PATH_MAX 4096
#endif
@@ -51,4 +53,7 @@ extern int write_tree(unsigned char *sha1, int missing_ok, const char *prefix);
extern int cmd_mailsplit(int argc, const char **argv, char **envp);
extern int split_mbox(const char **mbox, const char *dir, int allow_bare, int nr_prec, int skip);
+
+extern int cmd_mailinfo(int argc, const char **argv, char **envp);
+extern int mailinfo(FILE *in, FILE *out, int ks, const char *encoding, const char *msg, const char *patch);
#endif