18 lines
569 B
C#
18 lines
569 B
C#
namespace MarketAlly.GitCommitEditor.Models;
|
|
|
|
/// <summary>
|
|
/// Context about the commit's actual changes for smarter analysis.
|
|
/// </summary>
|
|
public sealed class CommitContext
|
|
{
|
|
public int FilesChanged { get; init; }
|
|
public int LinesAdded { get; init; }
|
|
public int LinesDeleted { get; init; }
|
|
public IReadOnlyList<string> FileNames { get; init; } = [];
|
|
|
|
public static CommitContext Empty => new();
|
|
|
|
public int TotalLinesChanged => LinesAdded + LinesDeleted;
|
|
public bool HasSignificantChanges => FilesChanged > 0 || TotalLinesChanged > 0;
|
|
}
|