mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
code_style: move SourceGit.CommandExtensions
to SourceGit.ViewModels.CommandExtensions
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
afe5d4b969
commit
892f3b8032
4 changed files with 14 additions and 16 deletions
|
@ -84,4 +84,13 @@ namespace SourceGit.ViewModels
|
|||
private StringBuilder _builder = new StringBuilder();
|
||||
private event Action<string> _onNewLineReceived;
|
||||
}
|
||||
|
||||
public static class CommandExtensions
|
||||
{
|
||||
public static T Use<T>(this T cmd, CommandLog log) where T : Commands.Command
|
||||
{
|
||||
cmd.Log = log;
|
||||
return cmd;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue