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