upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/git.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git.rs')
-rw-r--r--src/git.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git.rs b/src/git.rs
index c351a27..eebca29 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -787,7 +787,7 @@ pub fn oid_to_sha1(oid: &Oid) -> Sha1Hash {
787} 787}
788 788
789/// `Sha1Hash` to git2 `Oid` object 789/// `Sha1Hash` to git2 `Oid` object
790fn sha1_to_oid(hash: &Sha1Hash) -> Result<Oid> { 790pub fn sha1_to_oid(hash: &Sha1Hash) -> Result<Oid> {
791 Oid::from_bytes(hash.as_byte_array()).context("Sha1Hash bytes failed to produce a valid Oid") 791 Oid::from_bytes(hash.as_byte_array()).context("Sha1Hash bytes failed to produce a valid Oid")
792} 792}
793 793