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,33 +1,41 @@
namespace SourceGit.Commands {
public class Remote : Command {
public Remote(string repo) {
namespace SourceGit.Commands
{
public class Remote : Command
{
public Remote(string repo)
{
WorkingDirectory = repo;
Context = repo;
}
public bool Add(string name, string url) {
public bool Add(string name, string url)
{
Args = $"remote add {name} {url}";
return Exec();
}
public bool Delete(string name) {
public bool Delete(string name)
{
Args = $"remote remove {name}";
return Exec();
}
public bool Rename(string name, string to) {
public bool Rename(string name, string to)
{
Args = $"remote rename {name} {to}";
return Exec();
}
public bool Prune(string name) {
public bool Prune(string name)
{
Args = $"remote prune {name}";
return Exec();
}
public bool SetURL(string name, string url) {
public bool SetURL(string name, string url)
{
Args = $"remote set-url {name} {url}";
return Exec();
}
}
}
}