Harness the power of signify(1) to sign arbitrary git objects
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

parse oid once

+4 -4
+4 -4
src/rev_lookup.rs
··· 10 10 /// Execute the `rev-lookup` command. 11 11 pub fn command(key_path: PathBuf, rev: String) -> Result<()> { 12 12 let repo = utils::open_repository()?; 13 + let object_oid = repo 14 + .revparse_single(&rev) 15 + .context("Failed to look-up git object")? 16 + .id(); 13 17 for public_key in utils::get_public_keys(key_path)?.into_values() { 14 18 let tree_rev = { 15 - let object_oid = repo 16 - .revparse_single(&rev) 17 - .context("Failed to look-up git object")? 18 - .id(); 19 19 let key_fingerprint = public_key.fingerprint()?; 20 20 utils::craft_signature_reference(key_fingerprint, object_oid) 21 21 };