summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-02-04 18:04:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-02-04 18:04:06 (GMT)
commitba8748e6d62c8020700a1437d74b80cfbd499379 (patch)
tree8f9120bdfadb18a3149ee5752bf50c8f7b785a5d /builtin
parent686b895928efcd577b541f589a016fc0182f3a2f (diff)
parent1542d4cdad9287896fd80d84a4c2256197087308 (diff)
downloadgit-ba8748e6d62c8020700a1437d74b80cfbd499379.zip
git-ba8748e6d62c8020700a1437d74b80cfbd499379.tar.gz
git-ba8748e6d62c8020700a1437d74b80cfbd499379.tar.bz2
Merge branch 'jc/help' into maint
* jc/help: help: include <common-cmds.h> only in one file
Diffstat (limited to 'builtin')
-rw-r--r--builtin/help.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/builtin/help.c b/builtin/help.c
index bd86253..6067a61 100644
--- a/builtin/help.c
+++ b/builtin/help.c
@@ -6,7 +6,6 @@
#include "cache.h"
#include "builtin.h"
#include "exec_cmd.h"
-#include "common-cmds.h"
#include "parse-options.h"
#include "run-command.h"
#include "column.h"
@@ -287,23 +286,6 @@ static int git_help_config(const char *var, const char *value, void *cb)
static struct cmdnames main_cmds, other_cmds;
-void list_common_cmds_help(void)
-{
- int i, longest = 0;
-
- for (i = 0; i < ARRAY_SIZE(common_cmds); i++) {
- if (longest < strlen(common_cmds[i].name))
- longest = strlen(common_cmds[i].name);
- }
-
- puts(_("The most commonly used git commands are:"));
- for (i = 0; i < ARRAY_SIZE(common_cmds); i++) {
- printf(" %s ", common_cmds[i].name);
- mput_char(' ', longest - strlen(common_cmds[i].name));
- puts(_(common_cmds[i].help));
- }
-}
-
static int is_git_command(const char *s)
{
return is_in_cmdlist(&main_cmds, s) ||