// Copyright (c) 2025 TerraByte Inc.
//
// An implementation of IConflictSource specifically for handling conflicts
// that arise from a 'git pull' operation.
using Terra.Arbitrator.Promises;
using System.Collections.Generic;
namespace Terra.Arbitrator.Services
{
///
/// Handles the resolution of conflicts from a git pull.
///
public class PullConflictSource : IConflictSource
{
public string MineLabel => "Your Local Changes";
public string TheirsLabel => "Incoming Remote Changes";
public IPromise Resolve(List resolutions)
{
return GitService.PullAndOverwrite(resolutions);
}
}
}