mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
code_review: PR #711
* SourceGit.Commands.* should not reference code in SourceGit.ViewModels. Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
309db6e362
commit
8b3d129890
3 changed files with 6 additions and 5 deletions
|
@ -1,15 +1,14 @@
|
|||
using System;
|
||||
using SourceGit.ViewModels;
|
||||
|
||||
namespace SourceGit.Commands
|
||||
{
|
||||
public class Statistics : Command
|
||||
{
|
||||
public Statistics(string repo)
|
||||
public Statistics(string repo, int max)
|
||||
{
|
||||
WorkingDirectory = repo;
|
||||
Context = repo;
|
||||
Args = $"log --date-order --branches --remotes -{Preference.Instance.MaxHistoryCommits} --pretty=format:\"%ct$%aN\"";
|
||||
Args = $"log --date-order --branches --remotes -{max} --pretty=format:\"%ct$%aN\"";
|
||||
}
|
||||
|
||||
public Models.Statistics Result()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue