Class GitDiffFile
A changed file in a Git commit.
public record GitDiffFile : IEquatable<GitDiffFile>
- Inheritance
-
GitDiffFile
- Implements
- Inherited Members
Constructors
GitDiffFile(string, string, string?, string?)
A changed file in a Git commit.
public GitDiffFile(string Path, string Status, string? OriginalText, string? ModifiedText)
Parameters
PathstringThe repository-relative file path.
StatusstringThe Git file status.
OriginalTextstringThe file text before the commit.
ModifiedTextstringThe file text after the commit.
Properties
ModifiedText
The file text after the commit.
public string? ModifiedText { get; init; }
Property Value
OriginalText
The file text before the commit.
public string? OriginalText { get; init; }
Property Value
Path
The repository-relative file path.
public string Path { get; init; }
Property Value
Status
The Git file status.
public string Status { get; init; }