contrib: update packinfo.pl to not use dashed commands
Signed-off-by: Dan McGee <dpmcgee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Dan McGee committed
Oct 17, 2008 at 21:41 UTC
3b1eb124932772daee09419a581d418ea2d50045
1 file changed
+7
-7
contrib/stats/packinfo.pl
+7
-7
@@ -1,9 +1,9 @@
1
#!/usr/bin/perl
2
#
3
# 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.
5
#
6
-# $ git-verify-pack -v | packinfo.pl
6
+# $ git verify-pack -v | packinfo.pl
7
#
8
# This prints some full-pack statistics; currently "all sizes", "all
9
# path sizes", "tree sizes", "tree path sizes", and "depths".
@@ -20,7 +20,7 @@
20
#
21
# When run as:
22
#
23
-# $ git-verify-pack -v | packinfo.pl -tree
23
+# $ git verify-pack -v | packinfo.pl -tree
24
#
25
# the trees of objects are output along with the stats. This looks
26
# like:
@@ -43,7 +43,7 @@
43
#
44
# When run as:
45
#
46
-# $ git-verify-pack -v | packinfo.pl -tree -filenames
46
+# $ git verify-pack -v | packinfo.pl -tree -filenames
47
#
48
# it adds filenames to the tree. Getting this information is slow:
49
#
@@ -58,7 +58,7 @@
58
#
59
# When run as:
60
#
61
-# $ git-verify-pack -v | packinfo.pl -dump
61
+# $ git verify-pack -v | packinfo.pl -dump
62
#
63
# it prints out "sha1 size pathsize depth" for each sha1 in lexical
64
# order.
@@ -106,7 +106,7 @@ while (<STDIN>) {
106
}
107
108
if ($filenames && ($tree || $dump)) {
109
- open(NAMES, "git-name-rev --all|");
109
+ open(NAMES, "git name-rev --all|");
110
while (<NAMES>) {
111
if (/^(\S+)\s+(.*)$/) {
112
my ($sha1, $name) = ($1, $2);
@@ -117,7 +117,7 @@ if ($filenames && ($tree || $dump)) {
117
118
for my $commit (@commits) {
119
my $name = $names{$commit};
120
- open(TREE, "git-ls-tree -t -r $commit|");
120
+ open(TREE, "git ls-tree -t -r $commit|");
121
print STDERR "Plumbing tree $name\n";
122
while (<TREE>) {
123
if (/^(\S+)\s+(\S+)\s+(\S+)\s+(.*)$/) {