diff options
| author | Max Audron <audron@cocaine.farm> | 2025-04-08 16:54:07 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-04-08 16:54:07 +0200 |
| commit | 02639f2f5aebfebc9e8c19b698376fd5ccad27da (patch) | |
| tree | e1515fbbd75f69eabc7c87f2acd6ed3039780a2b /src/update/mod.rs | |
| parent | only checkout repo if clean (diff) | |
cleanup warnings and unused code
Diffstat (limited to 'src/update/mod.rs')
| -rw-r--r-- | src/update/mod.rs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/update/mod.rs b/src/update/mod.rs index e43f108..1ce718b 100644 --- a/src/update/mod.rs +++ b/src/update/mod.rs @@ -1,6 +1,5 @@ use std::fmt::{Debug, Display}; -use gix::bstr::ByteSlice; use tracing::debug; use crate::{ @@ -61,30 +60,6 @@ impl Repo { } Ok(UpdateResult::no_changes(self.name.clone())) - - // let merged = repo.branches(Some(BranchType::Local))? - // .filter_map(|x| x.ok()) - // .try_fold(false, |mut merged, (mut branch, _)| { - // let name = format!("refs/heads/{}", Repo::branch_name(&branch)); - - // if branch.upstream().is_ok() { - // let upstream = branch.upstream().unwrap(); - - // debug!("branch: {}", name); - - // merged |= self.merge(repo, &mut branch, &upstream)?; - // Ok::<bool, RepoError>(merged) - // } else { - // debug!("not updating branch: {}: branch does not have upstream tracking branch set", name); - // Ok(merged) - // } - // })?; - - // if merged { - // Ok(UpdateResult::merged(self.name.clone())) - // } else { - // Ok(UpdateResult::no_changes(self.name.clone())) - // } } } |
