summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-30 14:09:06 -0500
committerJeff Carr <[email protected]>2025-10-30 14:09:06 -0500
commit1fc8a831723f831a13defcd381380d130028f831 (patch)
treeb52689cf065ca7406430c94358fce465be5d8e25
parentea0ceddfa9c40b87568a460a7f2ea3cd3bd2021f (diff)
was used to debug junk newlines in tablesv0.0.178v0.0.177v0.0.176
-rw-r--r--repo.SortByAge.go12
-rw-r--r--stat.TableLimit.go2
2 files changed, 13 insertions, 1 deletions
diff --git a/repo.SortByAge.go b/repo.SortByAge.go
index 458a9a0..9e73eef 100644
--- a/repo.SortByAge.go
+++ b/repo.SortByAge.go
@@ -26,3 +26,15 @@ func (r sortReposAge) Less(i, j int) bool {
return false
}
func (a sortReposAge) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
+
+func (x *Repos) SortActual() *Repos {
+ newx := NewRepos()
+
+ all := x.SortByFullPath()
+ for all.Scan() {
+ r := all.Next()
+ newx.Append(r)
+ }
+
+ return newx
+}
diff --git a/stat.TableLimit.go b/stat.TableLimit.go
index 8c0b217..258b10f 100644
--- a/stat.TableLimit.go
+++ b/stat.TableLimit.go
@@ -16,5 +16,5 @@ import (
// formats & prints the table as text to Stdout. a real timesaver!
func (t *StatsTable) PrintTableLimit(limit int) {
t.MakeTable()
- cobol.PrintTableLimit(t.pb, limit)
+ cobol.PrintTableLimit(t.pb, limit, false)
}