Skip to content

Commit a7e1b15

Browse files
bk2204gitster
authored andcommitted
Documentation: remove unneeded argument in cat-texi.perl
The newly-added use of the warnings pragma exposes that the $menu[0] argument to printf has long been silently ignored, since there is no format specifier for it. It doesn't appear that the argument is actually needed, either: there is no reason to insert the name of one particular documentation page anywhere in the header that's being generated. Remove the unused argument, and since the format specification functionality is no longer needed, convert the printf to a simple print. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b56867c commit a7e1b15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/cat-texi.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
close $tmp;
2222

23-
printf '\input texinfo
23+
print '\input texinfo
2424
@setfilename gitman.info
2525
@documentencoding UTF-8
2626
@dircategory Development
@@ -31,7 +31,7 @@
3131
@top Git Manual Pages
3232
@documentlanguage en
3333
@menu
34-
', $menu[0];
34+
';
3535

3636
for (@menu) {
3737
print "* ${_}::\n";

0 commit comments

Comments
 (0)