Skip to content

Commit c078720

Browse files
committed
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.
1 parent 9f616f7 commit c078720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sizes/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ func (s HistorySize) TableString(threshold Threshold, nameStyle NameStyle) strin
379379

380380
S("History structure",
381381
I("Maximum history depth", nil, s.MaxHistoryDepth, counts.MetricPrefixes, " ", 500e3),
382-
I("Maximum tag depth", s.MaxTagDepthTag, s.MaxTagDepth, counts.MetricPrefixes, " ", 1),
382+
I("Maximum tag depth", s.MaxTagDepthTag, s.MaxTagDepth, counts.MetricPrefixes, " ", 1.001),
383383
),
384384

385385
S("Biggest checkouts",

0 commit comments

Comments
 (0)