Skip to content

Commit

Permalink
Merge pull request 'digest: return the raw digest, not hex encoded' (…
Browse files Browse the repository at this point in the history
…#35) from no-digest-hex into main

Reviewed-on: https://git.robur.coop/robur/git-kv/pulls/35
  • Loading branch information
dinosaure committed May 8, 2024
2 parents 4ba5f90 + 105e35d commit 5652b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git_kv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ module Make (Pclock : Mirage_clock.PCLOCK) = struct
let digest t key =
Option.fold
~none:(Error (`Not_found key))
~some:(fun x -> Ok (Store.Hash.to_hex x))
~some:(fun x -> Ok (Store.Hash.to_raw_string x))
t.head |> Lwt.return

let size t key =
Expand Down

0 comments on commit 5652b59

Please sign in to comment.