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>
Victoria Dye committed
Sep 2, 2022 at 15:56 UTC
cc75e556a9de5d62c1ca52db900b729fc830f378
2 files changed
+2
-1
Documentation/cmd-list.perl
+1
-1
@@ -10,7 +10,7 @@ sub format_one {
10
$state = 0;
11
open I, '<', "$name.txt" or die "No such file $name.txt";
12
while (<I>) {
13
- if (/^git[a-z0-9-]*\(([0-9])\)$/) {
13
+ if (/^(git|scalar)[a-z0-9-]*\(([0-9])\)$/) {
14
$mansection = $1;
15
next;
16
}
command-list.txt
+1
@@ -235,3 +235,4 @@ gittutorial guide
235
gittutorial-2 guide
236
gitweb ancillaryinterrogators
237
gitworkflows guide
238
+scalar mainporcelain