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 {