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.

fix compilation issues

+11 -6
+5 -4
src/main.rs
··· 1 1 mod fingerprint; 2 - mod sign; 2 + mod raw; 3 + //mod sign; 3 4 mod utils; 4 - mod verify; 5 + //mod verify; 5 6 6 7 use std::path::PathBuf; 7 8 ··· 63 64 Action::Raw(RawAction::Sign { 64 65 secret_key, 65 66 git_rev: rev, 66 - }) => sign::command(secret_key, rev), 67 + }) => raw::sign::command(secret_key, rev), 67 68 Action::Raw(RawAction::Verify { 68 69 public_key, 69 70 print_signed_oid: recover, 70 71 git_tree: rev, 71 - }) => verify::command(public_key, recover, rev), 72 + }) => raw::verify::command(public_key, recover, rev), 72 73 Action::Fingerprint { key } => fingerprint::command(key), 73 74 } 74 75 }
+4
src/raw.rs
··· 1 + //! Primitive signing and verification commands. 2 + 3 + pub mod sign; 4 + pub mod verify;
+1 -1
src/raw/sign.rs
··· 6 6 use git2::{Oid, Repository}; 7 7 use libsignify::{Codeable, PrivateKey}; 8 8 9 - use super::utils; 9 + use crate::utils; 10 10 11 11 /// Execute the `sign` command. 12 12 pub fn command(key_path: PathBuf, rev: String) -> Result<()> {
+1 -1
src/raw/verify.rs
··· 6 6 use git2::{Oid, Repository}; 7 7 use libsignify::{Codeable, Signature}; 8 8 9 - use super::utils; 9 + use crate::utils; 10 10 11 11 /// Execute the `verify` command. 12 12 pub fn command(key_path: PathBuf, recover: bool, tree_rev: String) -> Result<()> {