diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2015-05-21 19:39:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-21 13:03:37 -0700 |
commit | 11c6659d85d72273a4161c8779123147b52fbcb2 (patch) | |
tree | 96f0935fbda6ec8f71e5a4d842627401e1519548 /Documentation/cmd-list.perl | |
parent | command-list.txt: fix whitespace inconsistency (diff) | |
download | tgif-11c6659d85d72273a4161c8779123147b52fbcb2.tar.xz |
command-list: prepare machinery for upcoming "common groups" section
The ultimate goal is for "git help" to classify common commands by
group. Toward this end, a subsequent patch will add a new "common
groups" section to command-list.txt preceding the actual command list.
As preparation, teach existing command-list.txt parsing machinery, which
doesn't care about grouping, to skip over this upcoming "common groups"
section.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Sébastien Guimmara <sebastien.guimmara@gmail.com>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/cmd-list.perl')
-rwxr-xr-x | Documentation/cmd-list.perl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/cmd-list.perl b/Documentation/cmd-list.perl index 04f99778d8..5aa73cfe45 100755 --- a/Documentation/cmd-list.perl +++ b/Documentation/cmd-list.perl @@ -38,6 +38,10 @@ sub format_one { } } +while (<>) { + last if /^### command list/; +} + my %cmds = (); for (sort <>) { next if /^#/; |