diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-21 13:19:58 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-21 13:25:47 -0700 |
commit | 91efcf60653b2538b05625807293b97c07cb04f4 (patch) | |
tree | 0240b448657063bc251be1c79596377ea8b91542 /builtin.h | |
parent | 43885c2a557871aedcbb1a412fc18e98c3dd1dc4 (diff) | |
parent | 70827b15bfb11f7aea52c6995956be9d149233e1 (diff) | |
download | git-91efcf60653b2538b05625807293b97c07cb04f4.tar.gz git-91efcf60653b2538b05625807293b97c07cb04f4.tar.xz |
Merge branch 'master' into jc/fmt-patch
* master:
Split up builtin commands into separate files from git.c
git-log produces no output
fix pack-object buffer size
mailinfo: decode underscore used in "Q" encoding properly.
Reintroduce svn pools to solve the memory leak.
pack-objects: do not stop at object that is "too small"
git-commit --amend: two fixes.
get_tree_entry(): make it available from tree-walk
sha1_name.c: no need to include diff.h; tree-walk.h will do.
sha1_name.c: prepare to make get_tree_entry() reusable from others.
get_sha1() shorthands for blob/tree objects
pre-commit hook: complain about conflict markers.
git-merge: a bit more readable user guidance.
diff: move diff.c to diff-lib.c to make room.
git log: don't do merge diffs by default
Allow "git repack" users to specify repacking window/depth
Document git-clone --reference
Fix filename scaling for binary files
Fix uninteresting tags in new revision parsing
Conflicts:
Adjusted the addition of fmt-patch to match the recent split
from git.c to builtin.log.c.
Diffstat (limited to 'builtin.h')
-rw-r--r-- | builtin.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/builtin.h b/builtin.h new file mode 100644 index 000000000..94dc0732f --- /dev/null +++ b/builtin.h @@ -0,0 +1,24 @@ +#ifndef BUILTIN_H +#define BUILTIN_H + +#ifndef PATH_MAX +# define PATH_MAX 4096 +#endif + +extern const char git_version_string[]; + +void cmd_usage(int show_all, const char *exec_path, const char *fmt, ...) +#ifdef __GNUC__ + __attribute__((__format__(__printf__, 3, 4), __noreturn__)) +#endif + ; + +extern int cmd_help(int argc, const char **argv, char **envp); +extern int cmd_version(int argc, const char **argv, char **envp); + +extern int cmd_whatchanged(int argc, const char **argv, char **envp); +extern int cmd_show(int argc, const char **argv, char **envp); +extern int cmd_log(int argc, const char **argv, char **envp); +extern int cmd_format_patch(int argc, const char **argv, char **envp); + +#endif |