diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2008-08-02 10:08:38 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-02 18:06:37 -0700 |
commit | 3d78d1f18f211fd3d3e95977dee85a17a2aeb16c (patch) | |
tree | 5a58c16c81385bdd0e52af453a26538d22faa831 /help.h | |
parent | 6e4a86d2ed2d798c5462e5e324fefb8614be52a8 (diff) | |
download | git-3d78d1f18f211fd3d3e95977dee85a17a2aeb16c.tar.gz |
Builtin git-help.
This patch splits out git-help's functions to builtin-help.c and leaves
only functions used by other builtins in help.c.
First this removes git-help's functions from libgit which are not
interesting for other builtins, second this makes 'git help help' work
again.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.h')
-rw-r--r-- | help.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,12 @@ struct cmdnames { } **names; }; +static inline void mput_char(char c, unsigned int num) +{ + while(num--) + putchar(c); +} + unsigned int load_command_list(const char *prefix, struct cmdnames *main_cmds, struct cmdnames *other_cmds); |