mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
feature: git command logs
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
928a0ad3c5
commit
8b39df32cc
101 changed files with 1040 additions and 573 deletions
|
@ -30,19 +30,24 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
ProgressDescription = $"Initialize git repository at: '{_targetPath}'";
|
||||
|
||||
var log = new CommandLog("Initialize");
|
||||
Use(log);
|
||||
|
||||
return Task.Run(() =>
|
||||
{
|
||||
var succ = new Commands.Init(_pageId, _targetPath).Exec();
|
||||
if (!succ)
|
||||
return false;
|
||||
var succ = new Commands.Init(_pageId, _targetPath).Use(log).Exec();
|
||||
log.Complete();
|
||||
|
||||
CallUIThread(() =>
|
||||
if (succ)
|
||||
{
|
||||
Preferences.Instance.FindOrAddNodeByRepositoryPath(_targetPath, _parentNode, true);
|
||||
Welcome.Instance.Refresh();
|
||||
});
|
||||
CallUIThread(() =>
|
||||
{
|
||||
Preferences.Instance.FindOrAddNodeByRepositoryPath(_targetPath, _parentNode, true);
|
||||
Welcome.Instance.Refresh();
|
||||
});
|
||||
}
|
||||
|
||||
return true;
|
||||
return succ;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue