@@ -157,110 +157,144 @@ public ITask Init(IOutputProcessor<string> processor = null)
157
157
158
158
public ITask LfsInstall ( IOutputProcessor < string > processor = null )
159
159
{
160
+ Logger . Trace ( "LfsInstall" ) ;
161
+
160
162
return new GitLfsInstallTask ( cancellationToken , processor )
161
163
. Configure ( processManager ) ;
162
164
}
163
165
164
166
public ITask < GitStatus ? > Status ( IOutputProcessor < GitStatus ? > processor = null )
165
167
{
168
+ Logger . Trace ( "Status" ) ;
169
+
166
170
return new GitStatusTask ( new GitObjectFactory ( environment ) , cancellationToken , processor )
167
171
. Configure ( processManager ) ;
168
172
}
169
173
170
174
public ITask < List < GitLogEntry > > Log ( BaseOutputListProcessor < GitLogEntry > processor = null )
171
175
{
176
+ Logger . Trace ( "Log" ) ;
177
+
172
178
return new GitLogTask ( new GitObjectFactory ( environment ) , cancellationToken , processor )
173
179
. Configure ( processManager ) ;
174
180
}
175
181
176
182
public ITask < string > GetConfig ( string key , GitConfigSource configSource , IOutputProcessor < string > processor = null )
177
183
{
184
+ Logger . Trace ( "GetConfig" ) ;
185
+
178
186
return new GitConfigGetTask ( key , configSource , cancellationToken , processor )
179
187
. Configure ( processManager ) ;
180
188
}
181
189
182
190
public ITask < string > SetConfig ( string key , string value , GitConfigSource configSource , IOutputProcessor < string > processor = null )
183
191
{
192
+ Logger . Trace ( "SetConfig" ) ;
193
+
184
194
return new GitConfigSetTask ( key , value , configSource , cancellationToken , processor )
185
195
. Configure ( processManager ) ;
186
196
}
187
197
188
198
public ITask < List < GitLock > > ListLocks ( bool local , BaseOutputListProcessor < GitLock > processor = null )
189
199
{
200
+ Logger . Trace ( "ListLocks" ) ;
201
+
190
202
return new GitListLocksTask ( new GitObjectFactory ( environment ) , local , cancellationToken , processor )
191
203
. Configure ( processManager ) ;
192
204
}
193
205
194
206
public ITask < string > Pull ( string remote , string branch , IOutputProcessor < string > processor = null )
195
207
{
208
+ Logger . Trace ( "Pull" ) ;
209
+
196
210
return new GitPullTask ( remote , branch , cancellationToken , processor )
197
211
. Configure ( processManager ) ;
198
212
}
199
213
200
214
public ITask < string > Push ( string remote , string branch ,
201
215
IOutputProcessor < string > processor = null )
202
216
{
217
+ Logger . Trace ( "Push" ) ;
218
+
203
219
return new GitPushTask ( remote , branch , true , cancellationToken , processor )
204
220
. Configure ( processManager ) ;
205
221
}
206
222
207
223
public ITask < string > Revert ( string changeset , IOutputProcessor < string > processor = null )
208
224
{
225
+ Logger . Trace ( "Revert" ) ;
226
+
209
227
return new GitRevertTask ( changeset , cancellationToken , processor )
210
228
. Configure ( processManager ) ;
211
229
}
212
230
213
231
public ITask < string > Fetch ( string remote ,
214
232
IOutputProcessor < string > processor = null )
215
233
{
234
+ Logger . Trace ( "Fetch" ) ;
235
+
216
236
return new GitFetchTask ( remote , cancellationToken , processor )
217
237
. Configure ( processManager ) ;
218
238
}
219
239
220
240
public ITask < string > SwitchBranch ( string branch , IOutputProcessor < string > processor = null )
221
241
{
242
+ Logger . Trace ( "SwitchBranch" ) ;
243
+
222
244
return new GitSwitchBranchesTask ( branch , cancellationToken , processor )
223
245
. Configure ( processManager ) ;
224
246
}
225
247
226
248
public ITask < string > DeleteBranch ( string branch , bool deleteUnmerged = false ,
227
249
IOutputProcessor < string > processor = null )
228
250
{
251
+ Logger . Trace ( "DeleteBranch" ) ;
252
+
229
253
return new GitBranchDeleteTask ( branch , deleteUnmerged , cancellationToken , processor )
230
254
. Configure ( processManager ) ;
231
255
}
232
256
233
257
public ITask < string > CreateBranch ( string branch , string baseBranch ,
234
258
IOutputProcessor < string > processor = null )
235
259
{
260
+ Logger . Trace ( "CreateBranch" ) ;
261
+
236
262
return new GitBranchCreateTask ( branch , baseBranch , cancellationToken , processor )
237
263
. Configure ( processManager ) ;
238
264
}
239
265
240
266
public ITask < string > RemoteAdd ( string remote , string url ,
241
267
IOutputProcessor < string > processor = null )
242
268
{
269
+ Logger . Trace ( "RemoteAdd" ) ;
270
+
243
271
return new GitRemoteAddTask ( remote , url , cancellationToken , processor )
244
272
. Configure ( processManager ) ;
245
273
}
246
274
247
275
public ITask < string > RemoteRemove ( string remote ,
248
276
IOutputProcessor < string > processor = null )
249
277
{
278
+ Logger . Trace ( "RemoteRemove" ) ;
279
+
250
280
return new GitRemoteRemoveTask ( remote , cancellationToken , processor )
251
281
. Configure ( processManager ) ;
252
282
}
253
283
254
284
public ITask < string > RemoteChange ( string remote , string url ,
255
285
IOutputProcessor < string > processor = null )
256
286
{
287
+ Logger . Trace ( "RemoteChange" ) ;
288
+
257
289
return new GitRemoteChangeTask ( remote , url , cancellationToken , processor )
258
290
. Configure ( processManager ) ;
259
291
}
260
292
261
293
public ITask < string > Commit ( string message , string body ,
262
294
IOutputProcessor < string > processor = null )
263
295
{
296
+ Logger . Trace ( "Commit" ) ;
297
+
264
298
return new GitCommitTask ( message , body , cancellationToken , processor )
265
299
. Configure ( processManager ) ;
266
300
}
@@ -295,13 +329,17 @@ public ITask<string> Add(IList<string> files,
295
329
public ITask < string > Remove ( IList < string > files ,
296
330
IOutputProcessor < string > processor = null )
297
331
{
332
+ Logger . Trace ( "Remove" ) ;
333
+
298
334
return new GitRemoveFromIndexTask ( files , cancellationToken , processor )
299
335
. Configure ( processManager ) ;
300
336
}
301
337
302
338
public ITask < string > AddAndCommit ( IList < string > files , string message , string body ,
303
339
IOutputProcessor < string > processor = null )
304
340
{
341
+ Logger . Trace ( "AddAndCommit" ) ;
342
+
305
343
return Add ( files )
306
344
. Then ( new GitCommitTask ( message , body , cancellationToken )
307
345
. Configure ( processManager ) ) ;
@@ -310,13 +348,17 @@ public ITask<string> AddAndCommit(IList<string> files, string message, string bo
310
348
public ITask < string > Lock ( string file ,
311
349
IOutputProcessor < string > processor = null )
312
350
{
351
+ Logger . Trace ( "Lock" ) ;
352
+
313
353
return new GitLockTask ( file , cancellationToken , processor )
314
354
. Configure ( processManager ) ;
315
355
}
316
356
317
357
public ITask < string > Unlock ( string file , bool force ,
318
358
IOutputProcessor < string > processor = null )
319
359
{
360
+ Logger . Trace ( "Unlock" ) ;
361
+
320
362
return new GitUnlockTask ( file , force , cancellationToken , processor )
321
363
. Configure ( processManager ) ;
322
364
}
0 commit comments