fn convert_commit(branch_name: &str, oid: Oid, commit: Commit) -> CocoCommit {
        // GitBranch::build_changes(&commit);
        CocoCommit {
            branch: branch_name.to_string(),
            rev: oid.to_string(),
            author: commit.author().name().unwrap().to_string(),
            committer: commit.committer().name().unwrap().to_string(),
            date: commit.author().when().seconds(),
            message: commit.message().unwrap().to_string(),
            changes: vec![],
        }
    }
// todo: thinking in refactor to application, is not clean in infrastructure
thinking in refactor to application, is not clean in infrastructure
thinking in refactor to application is not clean in infrastructure
fn convert_commit(branch_name: &str, oid: Oid, commit: Commit) -> CocoCommit {
        // GitBranch::build_changes(&commit);
        CocoCommit {
            branch: branch_name.to_string(),
            rev: oid.to_string(),
            author: commit.author().name().unwrap().to_string(),
            committer: commit.committer().name().unwrap().to_string(),
            date: commit.author().when().seconds(),
            message: commit.message().unwrap().to_string(),
            changes: vec![],
        }
    }
fn convert_commit ( branch_name : & str , oid : Oid , commit : Commit ) -> CocoCommit { // GitBranch::build_changes(&commit); CocoCommit { branch : branch_name . to_string ( ) , rev : oid . to_string ( ) , author : commit . author ( ) . name ( ) . unwrap ( ) . to_string ( ) , committer : commit . committer ( ) . name ( ) . unwrap ( ) . to_string ( ) , date : commit . author ( ) . when ( ) . seconds ( ) , message : commit . message ( ) . unwrap ( ) . to_string ( ) , changes : vec ! [ ] , } }
todo: thinking in refactor to application, is not clean in infrastructure
todo : thinking in refactor to application is not clean in infrastructure
branch_name
&str
oid
Oid
commit
Commit