Skip to content

Commit

Permalink
cli: load a single dataset with .get instead of iterating over all of…
Browse files Browse the repository at this point in the history
… them
  • Loading branch information
doudou committed Jun 4, 2021
1 parent 5d45496 commit 75a471a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/syskit/log/cli/datastore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ def resolve_datasets(store, *query, **get_arguments)
if (digest = implicit.first)
Syskit::Log::Datastore::Dataset
.validate_encoded_short_digest(digest)
return [store.get(digest, **get_arguments)] if matchers.empty?

matchers["digest"] = /^#{digest}/
end

Expand Down

0 comments on commit 75a471a

Please sign in to comment.