mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
feature<SubTree>: supports git subtree
feature
This commit is contained in:
parent
6b602e70c5
commit
130b5a66ab
22 changed files with 784 additions and 10 deletions
|
@ -38,6 +38,10 @@ namespace SourceGit.Models {
|
|||
/// 子模块变更
|
||||
/// </summary>
|
||||
public event Action SubmoduleChanged;
|
||||
/// <summary>
|
||||
/// 树更新
|
||||
/// </summary>
|
||||
public event Action SubTreeChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 打开仓库事件
|
||||
|
@ -119,6 +123,13 @@ namespace SourceGit.Models {
|
|||
WorkingCopyChanged?.Invoke();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 通知更新子树列表
|
||||
/// </summary>
|
||||
public void RefreshSubTrees() {
|
||||
SubTreeChanged?.Invoke();
|
||||
}
|
||||
|
||||
private void Start(string repo, string gitDir) {
|
||||
wcWatcher = new FileSystemWatcher();
|
||||
wcWatcher.Path = repo;
|
||||
|
@ -163,6 +174,7 @@ namespace SourceGit.Models {
|
|||
TagChanged = null;
|
||||
StashChanged = null;
|
||||
SubmoduleChanged = null;
|
||||
SubTreeChanged = null;
|
||||
}
|
||||
|
||||
private void OnRepositoryChanged(object o, FileSystemEventArgs e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue