From 0994ba0e47daf045c3f446e17f918d93af623b8b Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Sat, 6 Apr 2024 14:38:41 -0700 Subject: [PATCH] cmd/squibble: fix handling of 'latest' in the history list --- cmd/squibble/squibble.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/squibble/squibble.go b/cmd/squibble/squibble.go index cac9d09..3770415 100644 --- a/cmd/squibble/squibble.go +++ b/cmd/squibble/squibble.go @@ -168,7 +168,7 @@ func runHistory(env *command.Env, dbPath string, digest ...string) error { } if len(digest) != 0 { if digest[0] == "latest" { - hr = hr[:1] + hr = hr[len(hr)-1:] } else { hr = slice.Partition(hr, func(r squibble.HistoryRow) bool { for _, d := range digest {