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,18 +1,23 @@
using System.Collections.Generic;
using System.Text;
namespace SourceGit.Commands {
public class Clean : Command {
public Clean(string repo) {
namespace SourceGit.Commands
{
public class Clean : Command
{
public Clean(string repo)
{
WorkingDirectory = repo;
Context = repo;
Args = "clean -qfd";
}
public Clean(string repo, List<string> files) {
public Clean(string repo, List<string> files)
{
StringBuilder builder = new StringBuilder();
builder.Append("clean -qfd --");
foreach (var f in files) {
foreach (var f in files)
{
builder.Append(" \"");
builder.Append(f);
builder.Append("\"");
@ -23,4 +28,4 @@ namespace SourceGit.Commands {
Args = builder.ToString();
}
}
}
}