···1717 Ok(())
1818}
19192020-/// Sign the revision `rev` with the secret key `key`, write the results
2121-/// to `repo`, and return the corresponding object id of the signature tree.
2020+/// Sign the revision `rev` with the given secret key, write the results
2121+/// to `repo` and return the object id of the resulting signature tree.
2222pub fn sign(repo: &Repository, secret_key: &PrivateKey, rev: &str) -> Result<Oid> {
2323 let oid = repo
2424 .revparse_single(rev)