Skip to content

Commit cc75e55

Browse files
vdyegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Victoria Dye <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 951759d commit cc75e55

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Documentation/cmd-list.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sub format_one {
1010
$state = 0;
1111
open I, '<', "$name.txt" or die "No such file $name.txt";
1212
while (<I>) {
13-
if (/^git[a-z0-9-]*\(([0-9])\)$/) {
13+
if (/^(git|scalar)[a-z0-9-]*\(([0-9])\)$/) {
1414
$mansection = $1;
1515
next;
1616
}

command-list.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,4 @@ gittutorial guide
235235
gittutorial-2 guide
236236
gitweb ancillaryinterrogators
237237
gitworkflows guide
238+
scalar mainporcelain

0 commit comments

Comments
 (0)