feature: add buttons to increase/decrease visible lines in text diff view (#145)

This commit is contained in:
leo 2024-05-27 10:29:15 +08:00
parent 8d27690473
commit 1040bbe4d2
8 changed files with 77 additions and 30 deletions

View file

@ -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()