mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-20 18:05:00 +00:00
Added DiffOption constructor to diff two files directly
This commit is contained in:
parent
33470eda19
commit
052132d796
1 changed files with 12 additions and 0 deletions
|
@ -99,6 +99,18 @@ namespace SourceGit.Models
|
|||
_orgPath = change.OriginalPath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Used to show differences between two files.
|
||||
/// </summary>
|
||||
/// <param name="path_lhs"></param>
|
||||
/// <param name="path_rhs"></param>
|
||||
public DiffOption(string path_lhs, string path_rhs)
|
||||
{
|
||||
_extra = "--no-index";
|
||||
_orgPath = path_lhs;
|
||||
_path = path_rhs;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts to diff command arguments.
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue