Skip to content

Commit

Permalink
cmd/squibble: fix handling of 'latest' in the history list
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Apr 6, 2024
1 parent d506ba4 commit 0994ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/squibble/squibble.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0994ba0

Please sign in to comment.