mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-25 11:24:02 +08:00
22 lines
475 B
C#
22 lines
475 B
C#
using System;
|
|
|
|
namespace SourceGit.Commands {
|
|
/// <summary>
|
|
/// GC
|
|
/// </summary>
|
|
public class GC : Command {
|
|
private Action<string> handler;
|
|
|
|
public GC(string repo, Action<string> onProgress) {
|
|
Cwd = repo;
|
|
Args = "gc";
|
|
TraitErrorAsOutput = true;
|
|
handler = onProgress;
|
|
}
|
|
|
|
public override void OnReadline(string line) {
|
|
handler?.Invoke(line);
|
|
}
|
|
}
|
|
}
|