mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
feature: add buttons to increase/decrease visible lines in text diff view (#145)
This commit is contained in:
parent
8d27690473
commit
1040bbe4d2
8 changed files with 77 additions and 30 deletions
|
@ -12,11 +12,11 @@ namespace SourceGit.Commands
|
|||
private const string PREFIX_LFS_DEL = "-version https://git-lfs.github.com/spec/";
|
||||
private const string PREFIX_LFS_MODIFY = " version https://git-lfs.github.com/spec/";
|
||||
|
||||
public Diff(string repo, Models.DiffOption opt)
|
||||
public Diff(string repo, Models.DiffOption opt, int unified)
|
||||
{
|
||||
WorkingDirectory = repo;
|
||||
Context = repo;
|
||||
Args = $"diff --ignore-cr-at-eol --unified=4 {opt}";
|
||||
Args = $"diff --ignore-cr-at-eol --unified={unified} {opt}";
|
||||
}
|
||||
|
||||
public Models.DiffResult Result()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue