Display help for Git mode after pressing `h' or `?' in *git-status*
[git/fastimport.git] / builtin.h
blob5339d8627f48a44e3fbf3c81a0790bc467ccd459
1 #ifndef BUILTIN_H
2 #define BUILTIN_H
4 #include <stdio.h>
6 #ifndef PATH_MAX
7 # define PATH_MAX 4096
8 #endif
10 extern const char git_version_string[];
12 void cmd_usage(int show_all, const char *exec_path, const char *fmt, ...)
13 #ifdef __GNUC__
14 __attribute__((__format__(__printf__, 3, 4), __noreturn__))
15 #endif
18 extern int cmd_help(int argc, const char **argv, char **envp);
19 extern int cmd_version(int argc, const char **argv, char **envp);
21 extern int cmd_whatchanged(int argc, const char **argv, char **envp);
22 extern int cmd_show(int argc, const char **argv, char **envp);
23 extern int cmd_log(int argc, const char **argv, char **envp);
24 extern int cmd_diff(int argc, const char **argv, char **envp);
25 extern int cmd_format_patch(int argc, const char **argv, char **envp);
26 extern int cmd_count_objects(int argc, const char **argv, char **envp);
28 extern int cmd_prune(int argc, const char **argv, char **envp);
30 extern int cmd_push(int argc, const char **argv, char **envp);
31 extern int cmd_grep(int argc, const char **argv, char **envp);
32 extern int cmd_rm(int argc, const char **argv, char **envp);
33 extern int cmd_add(int argc, const char **argv, char **envp);
34 extern int cmd_rev_list(int argc, const char **argv, char **envp);
35 extern int cmd_check_ref_format(int argc, const char **argv, char **envp);
36 extern int cmd_init_db(int argc, const char **argv, char **envp);
37 extern int cmd_tar_tree(int argc, const char **argv, char **envp);
38 extern int cmd_upload_tar(int argc, const char **argv, char **envp);
39 extern int cmd_get_tar_commit_id(int argc, const char **argv, char **envp);
40 extern int cmd_ls_files(int argc, const char **argv, char **envp);
41 extern int cmd_ls_tree(int argc, const char **argv, char **envp);
42 extern int cmd_read_tree(int argc, const char **argv, char **envp);
43 extern int cmd_commit_tree(int argc, const char **argv, char **envp);
44 extern int cmd_apply(int argc, const char **argv, char **envp);
45 extern int cmd_show_branch(int argc, const char **argv, char **envp);
46 extern int cmd_diff_files(int argc, const char **argv, char **envp);
47 extern int cmd_diff_index(int argc, const char **argv, char **envp);
48 extern int cmd_diff_stages(int argc, const char **argv, char **envp);
49 extern int cmd_diff_tree(int argc, const char **argv, char **envp);
50 extern int cmd_cat_file(int argc, const char **argv, char **envp);
51 extern int cmd_rev_parse(int argc, const char **argv, char **envp);
52 extern int cmd_update_index(int argc, const char **argv, char **envp);
53 extern int cmd_update_ref(int argc, const char **argv, char **envp);
54 extern int cmd_fmt_merge_msg(int argc, const char **argv, char **envp);
56 extern int cmd_write_tree(int argc, const char **argv, char **envp);
57 extern int write_tree(unsigned char *sha1, int missing_ok, const char *prefix);
59 extern int cmd_mailsplit(int argc, const char **argv, char **envp);
60 extern int split_mbox(const char **mbox, const char *dir, int allow_bare, int nr_prec, int skip);
62 extern int cmd_mailinfo(int argc, const char **argv, char **envp);
63 extern int mailinfo(FILE *in, FILE *out, int ks, const char *encoding, const char *msg, const char *patch);
65 extern int cmd_stripspace(int argc, const char **argv, char **envp);
66 extern void stripspace(FILE *in, FILE *out);
67 #endif