Call setup_git_directory() early
[git/git.git] / builtin.h
CommitLineData
70827b15
LT
1#ifndef BUILTIN_H
2#define BUILTIN_H
3
34488e3c
LS
4#include <stdio.h>
5
70827b15
LT
6#ifndef PATH_MAX
7# define PATH_MAX 4096
8#endif
9
10extern const char git_version_string[];
11
12void cmd_usage(int show_all, const char *exec_path, const char *fmt, ...)
13#ifdef __GNUC__
14 __attribute__((__format__(__printf__, 3, 4), __noreturn__))
15#endif
16 ;
17
18extern int cmd_help(int argc, const char **argv, char **envp);
19extern int cmd_version(int argc, const char **argv, char **envp);
20
21extern int cmd_whatchanged(int argc, const char **argv, char **envp);
22extern int cmd_show(int argc, const char **argv, char **envp);
23extern int cmd_log(int argc, const char **argv, char **envp);
65056021 24extern int cmd_diff(int argc, const char **argv, char **envp);
91efcf60 25extern int cmd_format_patch(int argc, const char **argv, char **envp);
c7432087 26extern int cmd_count_objects(int argc, const char **argv, char **envp);
70827b15 27
ba84a797
LT
28extern int cmd_prune(int argc, const char **argv, char **envp);
29
755225de 30extern int cmd_push(int argc, const char **argv, char **envp);
5010cb5f 31extern int cmd_grep(int argc, const char **argv, char **envp);
d9b814cc 32extern int cmd_rm(int argc, const char **argv, char **envp);
0d781539 33extern int cmd_add(int argc, const char **argv, char **envp);
5fb61b8d 34extern int cmd_rev_list(int argc, const char **argv, char **envp);
9370bae2 35extern int cmd_check_ref_format(int argc, const char **argv, char **envp);
c3c8835f 36extern int cmd_init_db(int argc, const char **argv, char **envp);
21754264
JH
37extern int cmd_tar_tree(int argc, const char **argv, char **envp);
38extern int cmd_upload_tar(int argc, const char **argv, char **envp);
52ba03cb 39extern int cmd_get_tar_commit_id(int argc, const char **argv, char **envp);
0864f264 40extern int cmd_ls_files(int argc, const char **argv, char **envp);
aae01bda 41extern int cmd_ls_tree(int argc, const char **argv, char **envp);
d147e501 42extern int cmd_read_tree(int argc, const char **argv, char **envp);
6d96ac18 43extern int cmd_commit_tree(int argc, const char **argv, char **envp);
ac6245e3 44extern int cmd_apply(int argc, const char **argv, char **envp);
51ce34b9 45extern int cmd_show_branch(int argc, const char **argv, char **envp);
e8cc9cd9
PE
46extern int cmd_diff_files(int argc, const char **argv, char **envp);
47extern int cmd_diff_index(int argc, const char **argv, char **envp);
48extern int cmd_diff_stages(int argc, const char **argv, char **envp);
49extern int cmd_diff_tree(int argc, const char **argv, char **envp);
f81daefe 50extern int cmd_cat_file(int argc, const char **argv, char **envp);
895f10c3 51extern int cmd_rev_parse(int argc, const char **argv, char **envp);
fefe81c9 52extern int cmd_update_index(int argc, const char **argv, char **envp);
854b4629 53extern int cmd_update_ref(int argc, const char **argv, char **envp);
00449f99 54extern int cmd_fmt_merge_msg(int argc, const char **argv, char **envp);
755225de 55
8ed05fb5
LS
56extern int cmd_write_tree(int argc, const char **argv, char **envp);
57extern int write_tree(unsigned char *sha1, int missing_ok, const char *prefix);
58
e690e843
LS
59extern int cmd_mailsplit(int argc, const char **argv, char **envp);
60extern int split_mbox(const char **mbox, const char *dir, int allow_bare, int nr_prec, int skip);
34488e3c
LS
61
62extern int cmd_mailinfo(int argc, const char **argv, char **envp);
63extern int mailinfo(FILE *in, FILE *out, int ks, const char *encoding, const char *msg, const char *patch);
7499c996
LS
64
65extern int cmd_stripspace(int argc, const char **argv, char **envp);
66extern void stripspace(FILE *in, FILE *out);
70827b15 67#endif