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>
This commit is contained in:
Lukas Sandström
2006-06-13 22:21:50 +02:00
committed by Junio C Hamano
parent e690e84315
commit 34488e3c37
4 changed files with 61 additions and 46 deletions

View File

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