summaryrefslogtreecommitdiff
path: root/builtin/help.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-04-25 11:21:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-04-25 17:30:11 (GMT)
commit4470ef94973cf40bb83864d480cee1e064053879 (patch)
treefd5bb4c44bbd82f81a9c17f7913bad6cc23d365f /builtin/help.c
parent8a1e7eac689c53f15d986e8525484ca9bd640553 (diff)
downloadgit-4470ef94973cf40bb83864d480cee1e064053879.zip
git-4470ef94973cf40bb83864d480cee1e064053879.tar.gz
git-4470ef94973cf40bb83864d480cee1e064053879.tar.bz2
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 96a462c..e63668a 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;
}