From c078720d95cc2d0336ceda63343630dfee5df47d Mon Sep 17 00:00:00 2001 From: Michael Haggerty Date: Mon, 9 Apr 2018 13:50:38 +0200 Subject: [PATCH 1/2] Don't consider a "maximum tag depth" of 1 to be concerning Every tag has at least a tag depth of 1, so there's no need to flag it as a reason for concern. This change is done a bit kludgily, by changing the scale factor for this statistic from 1 to 1.001, but it has the desired effect of subtracting one from the number of stars computed for any reasonable tag depth. --- sizes/output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sizes/output.go b/sizes/output.go index 58ff276..901d6a5 100644 --- a/sizes/output.go +++ b/sizes/output.go @@ -379,7 +379,7 @@ func (s HistorySize) TableString(threshold Threshold, nameStyle NameStyle) strin S("History structure", I("Maximum history depth", nil, s.MaxHistoryDepth, counts.MetricPrefixes, " ", 500e3), - I("Maximum tag depth", s.MaxTagDepthTag, s.MaxTagDepth, counts.MetricPrefixes, " ", 1), + I("Maximum tag depth", s.MaxTagDepthTag, s.MaxTagDepth, counts.MetricPrefixes, " ", 1.001), ), S("Biggest checkouts", From 0bea487ed3babc76d9f713293af960512f161f02 Mon Sep 17 00:00:00 2001 From: Michael Haggerty Date: Thu, 12 Apr 2018 13:42:16 +0200 Subject: [PATCH 2/2] Adjust the README example output for the tag depth change --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a3d91bd..5014379 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ Processing references: 539 | | | | | History structure | | | | * Maximum history depth | 136 k | | -| * Maximum tag depth [5] | 1 | * | +| * Maximum tag depth [5] | 1 | | | | | | | Biggest checkouts | | | | * Number of directories [6] | 4.38 k | ** |