Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/help.h
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-08-02 12:08:38 +0400
committerJunio C Hamano <gitster@pobox.com>2008-08-03 05:06:37 +0400
commit3d78d1f18f211fd3d3e95977dee85a17a2aeb16c (patch)
tree5a58c16c81385bdd0e52af453a26538d22faa831 /help.h
parent6e4a86d2ed2d798c5462e5e324fefb8614be52a8 (diff)
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/help.h b/help.h
index d614e5491b..3f1ae89dd6 100644
--- a/help.h
+++ b/help.h
@@ -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);