@@ -5,22 +5,28 @@ namespace SourceGit.ViewModels
55{
66 public abstract class InProgressContext
77 {
8- public async Task ContinueAsync ( )
8+ public string Name
9+ {
10+ get ;
11+ protected set ;
12+ }
13+
14+ public async Task ContinueAsync ( CommandLog log )
915 {
1016 if ( _continueCmd != null )
11- await _continueCmd . ExecAsync ( ) ;
17+ await _continueCmd . Use ( log ) . ExecAsync ( ) ;
1218 }
1319
14- public async Task SkipAsync ( )
20+ public async Task SkipAsync ( CommandLog log )
1521 {
1622 if ( _skipCmd != null )
17- await _skipCmd . ExecAsync ( ) ;
23+ await _skipCmd . Use ( log ) . ExecAsync ( ) ;
1824 }
1925
20- public async Task AbortAsync ( )
26+ public async Task AbortAsync ( CommandLog log )
2127 {
2228 if ( _abortCmd != null )
23- await _abortCmd . ExecAsync ( ) ;
29+ await _abortCmd . Use ( log ) . ExecAsync ( ) ;
2430 }
2531
2632 protected Commands . Command _continueCmd = null ;
@@ -42,6 +48,8 @@ public string HeadName
4248
4349 public CherryPickInProgress ( Repository repo )
4450 {
51+ Name = "Cherry-Pick" ;
52+
4553 _continueCmd = new Commands . Command
4654 {
4755 WorkingDirectory = repo . FullPath ,
@@ -93,6 +101,8 @@ public Models.Commit Onto
93101
94102 public RebaseInProgress ( Repository repo )
95103 {
104+ Name = "Rebase" ;
105+
96106 _continueCmd = new Commands . Command
97107 {
98108 WorkingDirectory = repo . FullPath ,
@@ -144,6 +154,8 @@ public Models.Commit Head
144154
145155 public RevertInProgress ( Repository repo )
146156 {
157+ Name = "Revert" ;
158+
147159 _continueCmd = new Commands . Command
148160 {
149161 WorkingDirectory = repo . FullPath ,
@@ -189,6 +201,8 @@ public string SourceName
189201
190202 public MergeInProgress ( Repository repo )
191203 {
204+ Name = "Merge" ;
205+
192206 _continueCmd = new Commands . Command
193207 {
194208 WorkingDirectory = repo . FullPath ,
0 commit comments