mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 05:05:00 +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
27
src/ViewModels/ViewLogs.cs
Normal file
27
src/ViewModels/ViewLogs.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using Avalonia.Collections;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace SourceGit.ViewModels
|
||||
{
|
||||
public class ViewLogs : ObservableObject
|
||||
{
|
||||
public AvaloniaList<CommandLog> Logs
|
||||
{
|
||||
get => _repo.Logs;
|
||||
}
|
||||
|
||||
public CommandLog SelectedLog
|
||||
{
|
||||
get => _selectedLog;
|
||||
set => SetProperty(ref _selectedLog, value);
|
||||
}
|
||||
|
||||
public ViewLogs(Repository repo)
|
||||
{
|
||||
_repo = repo;
|
||||
}
|
||||
|
||||
private Repository _repo = null;
|
||||
private CommandLog _selectedLog = null;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue