mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
style: add .editorconfig for code formatting. see issu #25
This commit is contained in:
parent
a8eeea4f78
commit
18aaa0a143
225 changed files with 7781 additions and 3911 deletions
|
@ -1,23 +1,28 @@
|
|||
using System.Text;
|
||||
|
||||
namespace SourceGit.Commands {
|
||||
public class QueryFileContent : Command {
|
||||
public QueryFileContent(string repo, string revision, string file) {
|
||||
namespace SourceGit.Commands
|
||||
{
|
||||
public class QueryFileContent : Command
|
||||
{
|
||||
public QueryFileContent(string repo, string revision, string file)
|
||||
{
|
||||
WorkingDirectory = repo;
|
||||
Context = repo;
|
||||
Args = $"show {revision}:\"{file}\"";
|
||||
}
|
||||
|
||||
public string Result() {
|
||||
public string Result()
|
||||
{
|
||||
Exec();
|
||||
return _builder.ToString();
|
||||
}
|
||||
|
||||
protected override void OnReadline(string line) {
|
||||
protected override void OnReadline(string line)
|
||||
{
|
||||
_builder.Append(line);
|
||||
_builder.Append('\n');
|
||||
}
|
||||
|
||||
private StringBuilder _builder = new StringBuilder();
|
||||
private readonly StringBuilder _builder = new StringBuilder();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue