style: add .editorconfig for code formatting. see issu #25

This commit is contained in:
leo 2024-03-18 09:37:06 +08:00
parent a8eeea4f78
commit 18aaa0a143
225 changed files with 7781 additions and 3911 deletions

View file

@ -1,8 +1,11 @@
using System;
namespace SourceGit.Commands {
public class GC : Command {
public GC(string repo, Action<string> outputHandler) {
namespace SourceGit.Commands
{
public class GC : Command
{
public GC(string repo, Action<string> outputHandler)
{
_outputHandler = outputHandler;
WorkingDirectory = repo;
Context = repo;
@ -10,10 +13,11 @@ namespace SourceGit.Commands {
Args = "gc";
}
protected override void OnReadline(string line) {
protected override void OnReadline(string line)
{
_outputHandler?.Invoke(line);
}
private Action<string> _outputHandler;
private readonly Action<string> _outputHandler;
}
}
}