Skip to content

Commit 3b1eb12

Browse files
toofishesgitster
authored andcommitted
contrib: update packinfo.pl to not use dashed commands
Signed-off-by: Dan McGee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1fb23e6 commit 3b1eb12

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

contrib/stats/packinfo.pl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/perl
22
#
33
# This tool will print vaguely pretty information about a pack. It
4-
# expects the output of "git-verify-pack -v" as input on stdin.
4+
# expects the output of "git verify-pack -v" as input on stdin.
55
#
6-
# $ git-verify-pack -v | packinfo.pl
6+
# $ git verify-pack -v | packinfo.pl
77
#
88
# This prints some full-pack statistics; currently "all sizes", "all
99
# path sizes", "tree sizes", "tree path sizes", and "depths".
@@ -20,7 +20,7 @@
2020
#
2121
# When run as:
2222
#
23-
# $ git-verify-pack -v | packinfo.pl -tree
23+
# $ git verify-pack -v | packinfo.pl -tree
2424
#
2525
# the trees of objects are output along with the stats. This looks
2626
# like:
@@ -43,7 +43,7 @@
4343
#
4444
# When run as:
4545
#
46-
# $ git-verify-pack -v | packinfo.pl -tree -filenames
46+
# $ git verify-pack -v | packinfo.pl -tree -filenames
4747
#
4848
# it adds filenames to the tree. Getting this information is slow:
4949
#
@@ -58,7 +58,7 @@
5858
#
5959
# When run as:
6060
#
61-
# $ git-verify-pack -v | packinfo.pl -dump
61+
# $ git verify-pack -v | packinfo.pl -dump
6262
#
6363
# it prints out "sha1 size pathsize depth" for each sha1 in lexical
6464
# order.
@@ -106,7 +106,7 @@
106106
}
107107

108108
if ($filenames && ($tree || $dump)) {
109-
open(NAMES, "git-name-rev --all|");
109+
open(NAMES, "git name-rev --all|");
110110
while (<NAMES>) {
111111
if (/^(\S+)\s+(.*)$/) {
112112
my ($sha1, $name) = ($1, $2);
@@ -117,7 +117,7 @@
117117

118118
for my $commit (@commits) {
119119
my $name = $names{$commit};
120-
open(TREE, "git-ls-tree -t -r $commit|");
120+
open(TREE, "git ls-tree -t -r $commit|");
121121
print STDERR "Plumbing tree $name\n";
122122
while (<TREE>) {
123123
if (/^(\S+)\s+(\S+)\s+(\S+)\s+(.*)$/) {

0 commit comments

Comments
 (0)