]> git.ipfire.org Git - thirdparty/git.git/commitdiff
scalar: add to 'git help -a' command list
authorVictoria Dye <vdye@github.com>
Fri, 2 Sep 2022 15:56:46 +0000 (15:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Sep 2022 17:02:56 +0000 (10:02 -0700)
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>
Documentation/cmd-list.perl
command-list.txt

index af5da45d2878e07ffe4586bfb8c1dc16134f9e95..9515a499a316db4a8e48b81c83f0068e5faf2d22 100755 (executable)
@@ -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;
                }
index f96bdabd7d95d8c00468a969fdb83dc724f49ede..93f94e42ab70f54bc8609ceab9f68db77524216c 100644 (file)
@@ -235,3 +235,4 @@ gittutorial                             guide
 gittutorial-2                           guide
 gitweb                                  ancillaryinterrogators
 gitworkflows                            guide
+scalar                                  mainporcelain