diff options
Diffstat (limited to 'apps/servers/octopus/supergit/src/bin/test.rs')
-rw-r--r-- | apps/servers/octopus/supergit/src/bin/test.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/servers/octopus/supergit/src/bin/test.rs b/apps/servers/octopus/supergit/src/bin/test.rs index 505580a860ce..5398d7539490 100644 --- a/apps/servers/octopus/supergit/src/bin/test.rs +++ b/apps/servers/octopus/supergit/src/bin/test.rs @@ -25,12 +25,19 @@ fn main() { // Iterate over all branch iterators we get while let Some(biter) = rx.recv().ok() { use BranchCommit::*; + println!( + "{}: {}", + biter.current().id_str(), + biter.current().summary() + ); + biter.for_each(|bc| match bc { Commit(c) => println!("{}: {}", c.id_str(), c.summary()), - Merge(c, b) => { - // println!("[MERGE] {}: {}", c.id_str(), c.summary()); + Merge(Some(c), b) => { + println!("{}: {}", c.id_str(), c.summary()); // tx.send(b.get_all()).unwrap(); } + Merge(_, b) => {} //tx.send(b.get_all()).unwrap(), _ => todo!(), }); } |