summaryrefslogtreecommitdiff
path: root/Documentation/cmd-list.perl
diff options
context:
space:
mode:
authorVictoria Dye <vdye@github.com>2022-09-02 15:56:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-09-02 17:02:56 (GMT)
commitcc75e556a9de5d62c1ca52db900b729fc830f378 (patch)
tree08c22c8e23444acae3ec9a8b32a198f4cd0693ad /Documentation/cmd-list.perl
parent951759d3a5cb20ffeff4836aa0c4b793fa142b51 (diff)
downloadgit-cc75e556a9de5d62c1ca52db900b729fc830f378.zip
git-cc75e556a9de5d62c1ca52db900b729fc830f378.tar.gz
git-cc75e556a9de5d62c1ca52db900b729fc830f378.tar.bz2
scalar: add to 'git help -a' command list
Add 'scalar' as a 'mainporcelain' command in the Git command list. Update the regex in 'cmd-list.perl' used to match the first line of command documentation to find 'scalar(1)'. Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Victoria Dye <vdye@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/cmd-list.perl')
-rwxr-xr-xDocumentation/cmd-list.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/cmd-list.perl b/Documentation/cmd-list.perl
index af5da45..9515a49 100755
--- a/Documentation/cmd-list.perl
+++ b/Documentation/cmd-list.perl
@@ -10,7 +10,7 @@ sub format_one {
$state = 0;
open I, '<', "$name.txt" or die "No such file $name.txt";
while (<I>) {
- if (/^git[a-z0-9-]*\(([0-9])\)$/) {
+ if (/^(git|scalar)[a-z0-9-]*\(([0-9])\)$/) {
$mansection = $1;
next;
}