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.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/git.rs b/src/git.rs
index 5afb1e4..86b59fb 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -45,9 +45,11 @@ pub trait RepoActions {
45 fn get_commit_parent(&self, commit: &Sha1Hash) -> Result<Sha1Hash>; 45 fn get_commit_parent(&self, commit: &Sha1Hash) -> Result<Sha1Hash>;
46 fn get_commit_message(&self, commit: &Sha1Hash) -> Result<String>; 46 fn get_commit_message(&self, commit: &Sha1Hash) -> Result<String>;
47 fn get_commit_message_summary(&self, commit: &Sha1Hash) -> Result<String>; 47 fn get_commit_message_summary(&self, commit: &Sha1Hash) -> Result<String>;
48 #[allow(clippy::doc_link_with_quotes)]
48 /// returns vector ["name", "email", "unixtime", "offset"] 49 /// returns vector ["name", "email", "unixtime", "offset"]
49 /// eg ["joe bloggs", "joe@pm.me", "12176","-300"] 50 /// eg ["joe bloggs", "joe@pm.me", "12176","-300"]
50 fn get_commit_author(&self, commit: &Sha1Hash) -> Result<Vec<String>>; 51 fn get_commit_author(&self, commit: &Sha1Hash) -> Result<Vec<String>>;
52 #[allow(clippy::doc_link_with_quotes)]
51 /// returns vector ["name", "email", "unixtime", "offset"] 53 /// returns vector ["name", "email", "unixtime", "offset"]
52 /// eg ["joe bloggs", "joe@pm.me", "12176","-300"] 54 /// eg ["joe bloggs", "joe@pm.me", "12176","-300"]
53 fn get_commit_comitter(&self, commit: &Sha1Hash) -> Result<Vec<String>>; 55 fn get_commit_comitter(&self, commit: &Sha1Hash) -> Result<Vec<String>>;
@@ -1681,7 +1683,7 @@ mod tests {
1681 let mut events = generate_cover_letter_and_patch_events( 1683 let mut events = generate_cover_letter_and_patch_events(
1682 Some(("test".to_string(), "test".to_string())), 1684 Some(("test".to_string(), "test".to_string())),
1683 &git_repo, 1685 &git_repo,
1684 &vec![oid_to_sha1(&oid1), oid_to_sha1(&oid2), oid_to_sha1(&oid3)], 1686 &[oid_to_sha1(&oid1), oid_to_sha1(&oid2), oid_to_sha1(&oid3)],
1685 &TEST_KEY_1_KEYS, 1687 &TEST_KEY_1_KEYS,
1686 &RepoRef::try_from(generate_repo_ref_event()).unwrap(), 1688 &RepoRef::try_from(generate_repo_ref_event()).unwrap(),
1687 &None, 1689 &None,