aboutsummaryrefslogtreecommitdiff
path: root/builtin/help.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-04-25 18:21:53 +0700
committerJunio C Hamano <gitster@pobox.com>2012-04-25 10:30:11 -0700
commit4470ef94973cf40bb83864d480cee1e064053879 (patch)
treefd5bb4c44bbd82f81a9c17f7913bad6cc23d365f /builtin/help.c
parent8a1e7eac689c53f15d986e8525484ca9bd640553 (diff)
downloadgit-4470ef94973cf40bb83864d480cee1e064053879.tar.gz
git-4470ef94973cf40bb83864d480cee1e064053879.tar.xz
help: replace underlining "help -a" headers using hyphens with a blank line
We used to underline a header text, like this: This is a header ---------------- content... But calculating text length so that the dashes align with the text could get complicated because the text could be in any charset in translated Git. There is no point to use this pseudo underline; simply a blank line would do and it even makes it easier to read: This is a header content... While at it, give translators more context to translate, e.g. e.g. "git commands available..." instead of "%s available..." Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/help.c')
-rw-r--r--builtin/help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/help.c b/builtin/help.c
index 96a462cf1..e63668ade 100644
--- a/builtin/help.c
+++ b/builtin/help.c
@@ -425,7 +425,7 @@ int cmd_help(int argc, const char **argv, const char *prefix)
if (show_all) {
printf(_("usage: %s%s"), _(git_usage_string), "\n\n");
- list_commands(_("git commands"), &main_cmds, &other_cmds);
+ list_commands(&main_cmds, &other_cmds);
printf("%s\n", _(git_more_info_string));
return 0;
}