summaryrefslogtreecommitdiff
path: root/help.h
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 /help.h
parent8a1e7eac689c53f15d986e8525484ca9bd640553 (diff)
downloadgit-4470ef94973cf40bb83864d480cee1e064053879.tar.gz
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 'help.h')
-rw-r--r--help.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/help.h b/help.h
index b6b12d5754..dc406c8c50 100644
--- a/help.h
+++ b/help.h
@@ -25,8 +25,7 @@ extern void add_cmdname(struct cmdnames *cmds, const char *name, int len);
/* Here we require that excludes is a sorted list. */
extern void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes);
extern int is_in_cmdlist(struct cmdnames *cmds, const char *name);
-extern void list_commands(const char *title,
- struct cmdnames *main_cmds,
+extern void list_commands(struct cmdnames *main_cmds,
struct cmdnames *other_cmds);
#endif /* HELP_H */