//! Conflict resolution strategies

use rustelo_core::Result;

use super::*;

#[allow(dead_code)]
pub fn apply_strategy(strategy: &ResolutionStrategy, conflict: &Conflict) -> Result<()> {
    match strategy {
        ResolutionStrategy::UseLatest => {
            println!("Applying UseLatest strategy for: {}", conflict.id);
        }
        ResolutionStrategy::UseExisting => {
            println!("Applying UseExisting strategy for: {}", conflict.id);
        }
        ResolutionStrategy::Merge => {
            println!("Applying Merge strategy for: {}", conflict.id);
        }
        ResolutionStrategy::Rename => {
            println!("Applying Rename strategy for: {}", conflict.id);
        }
        ResolutionStrategy::Interactive => {
            println!("Applying Interactive strategy for: {}", conflict.id);
        }
        ResolutionStrategy::Skip => {
            println!("Applying Skip strategy for: {}", conflict.id);
        }
    }
    Ok(())
}
