File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ public void MarkBranchDirtyManually()
72
72
_updateBranch = DateTime . Now . ToFileTime ( ) - 1 ;
73
73
}
74
74
75
+ public void MarkTagDirtyManually ( )
76
+ {
77
+ _updateTags = DateTime . Now . ToFileTime ( ) - 1 ;
78
+ }
79
+
75
80
public void MarkWorkingCopyDirtyManually ( )
76
81
{
77
82
_updateWC = DateTime . Now . ToFileTime ( ) - 1 ;
Original file line number Diff line number Diff line change @@ -33,7 +33,11 @@ public override Task<bool> Sure()
33
33
{
34
34
var remotes = ShouldPushToRemote ? _repo . Remotes : null ;
35
35
var succ = Commands . Tag . Delete ( _repo . FullPath , Target . Name , remotes ) ;
36
- CallUIThread ( ( ) => _repo . SetWatcherEnabled ( true ) ) ;
36
+ CallUIThread ( ( ) =>
37
+ {
38
+ _repo . MarkTagsDirtyManually ( ) ;
39
+ _repo . SetWatcherEnabled ( true ) ;
40
+ } ) ;
37
41
return succ ;
38
42
} ) ;
39
43
}
Original file line number Diff line number Diff line change @@ -771,6 +771,19 @@ public void MarkBranchesDirtyManually()
771
771
}
772
772
}
773
773
774
+ public void MarkTagsDirtyManually ( )
775
+ {
776
+ if ( _watcher == null )
777
+ {
778
+ Task . Run ( RefreshTags ) ;
779
+ Task . Run ( RefreshCommits ) ;
780
+ }
781
+ else
782
+ {
783
+ _watcher . MarkTagDirtyManually ( ) ;
784
+ }
785
+ }
786
+
774
787
public void MarkWorkingCopyDirtyManually ( )
775
788
{
776
789
if ( _watcher == null )
You can’t perform that action at this time.
0 commit comments