@@ -44,18 +44,18 @@ public interface IGitClient
44
44
/// <summary>
45
45
/// Executes `git config get` to get a configuration value.
46
46
/// </summary>
47
- /// <param name="key"></param>
48
- /// <param name="configSource"></param>
47
+ /// <param name="key">The configuration key to get </param>
48
+ /// <param name="configSource">The config source (unspecified, local,user,global) to use </param>
49
49
/// <param name="processor">A custom output processor instance</param>
50
50
/// <returns>String output of git command</returns>
51
51
ITask < string > GetConfig ( string key , GitConfigSource configSource , IOutputProcessor < string > processor = null ) ;
52
52
53
53
/// <summary>
54
54
/// Executes `git config set` to set a configuration value.
55
55
/// </summary>
56
- /// <param name="key"></param>
57
- /// <param name="value"></param>
58
- /// <param name="configSource"></param>
56
+ /// <param name="key">The configuration key to set </param>
57
+ /// <param name="value">The value to set </param>
58
+ /// <param name="configSource">The config source (unspecified, local,user,global) to use </param>
59
59
/// <param name="processor">A custom output processor instance</param>
60
60
/// <returns>String output of git command</returns>
61
61
ITask < string > SetConfig ( string key , string value , GitConfigSource configSource , IOutputProcessor < string > processor = null ) ;
@@ -77,102 +77,102 @@ public interface IGitClient
77
77
/// <summary>
78
78
/// Executes `git pull` to perform a pull operation.
79
79
/// </summary>
80
- /// <param name="remote"></param>
81
- /// <param name="branch"></param>
80
+ /// <param name="remote">The remote to pull from </param>
81
+ /// <param name="branch">The branch to pull </param>
82
82
/// <param name="processor">A custom output processor instance</param>
83
83
/// <returns>String output of git command</returns>
84
84
ITask < string > Pull ( string remote , string branch , IOutputProcessor < string > processor = null ) ;
85
85
86
86
/// <summary>
87
87
/// Executes `git push` to perform a push operation.
88
88
/// </summary>
89
- /// <param name="remote"></param>
90
- /// <param name="branch"></param>
89
+ /// <param name="remote">The remote to push to </param>
90
+ /// <param name="branch">The branch to push </param>
91
91
/// <param name="processor">A custom output processor instance</param>
92
92
/// <returns>String output of git command</returns>
93
93
ITask < string > Push ( string remote , string branch , IOutputProcessor < string > processor = null ) ;
94
94
95
95
/// <summary>
96
96
/// Executes `git revert` to perform a revert operation.
97
97
/// </summary>
98
- /// <param name="changeset"></param>
98
+ /// <param name="changeset">The changeset to revert </param>
99
99
/// <param name="processor">A custom output processor instance</param>
100
100
/// <returns>String output of git command</returns>
101
101
ITask < string > Revert ( string changeset , IOutputProcessor < string > processor = null ) ;
102
102
103
103
/// <summary>
104
104
/// Executes `git fetch` to perform a fetch operation.
105
105
/// </summary>
106
- /// <param name="remote"></param>
106
+ /// <param name="remote">The remote to fetch from </param>
107
107
/// <param name="processor">A custom output processor instance</param>
108
108
/// <returns>String output of git command</returns>
109
109
ITask < string > Fetch ( string remote , IOutputProcessor < string > processor = null ) ;
110
110
111
111
/// <summary>
112
112
/// Executes `git checkout` to switch branches.
113
113
/// </summary>
114
- /// <param name="branch"></param>
114
+ /// <param name="branch">The branch to checkout </param>
115
115
/// <param name="processor">A custom output processor instance</param>
116
116
/// <returns>String output of git command</returns>
117
117
ITask < string > SwitchBranch ( string branch , IOutputProcessor < string > processor = null ) ;
118
118
119
119
/// <summary>
120
120
/// Executes `git branch -d` to delete a branch.
121
121
/// </summary>
122
- /// <param name="branch"></param>
123
- /// <param name="deleteUnmerged"></param>
122
+ /// <param name="branch">The branch to delete </param>
123
+ /// <param name="deleteUnmerged">The flag to indicate the branch should be deleted even if not merged </param>
124
124
/// <param name="processor">A custom output processor instance</param>
125
125
/// <returns>String output of git command</returns>
126
126
ITask < string > DeleteBranch ( string branch , bool deleteUnmerged = false , IOutputProcessor < string > processor = null ) ;
127
127
128
128
/// <summary>
129
129
/// Executes `git branch` to create a branch.
130
130
/// </summary>
131
- /// <param name="branch"></param>
132
- /// <param name="baseBranch"></param>
131
+ /// <param name="branch">The name of branch to create </param>
132
+ /// <param name="baseBranch">The name of branch to create from </param>
133
133
/// <param name="processor">A custom output processor instance</param>
134
134
/// <returns>String output of git command</returns>
135
135
ITask < string > CreateBranch ( string branch , string baseBranch , IOutputProcessor < string > processor = null ) ;
136
136
137
137
/// <summary>
138
138
/// Executes `git remote add` to add a git remote.
139
139
/// </summary>
140
- /// <param name="remote"></param>
141
- /// <param name="url"></param>
140
+ /// <param name="remote">The remote to add </param>
141
+ /// <param name="url">The url of the remote </param>
142
142
/// <param name="processor">A custom output processor instance</param>
143
143
/// <returns>String output of git command</returns>
144
144
ITask < string > RemoteAdd ( string remote , string url , IOutputProcessor < string > processor = null ) ;
145
145
146
146
/// <summary>
147
147
/// Executes `git remote rm` to remove a git remote.
148
148
/// </summary>
149
- /// <param name="remote"></param>
149
+ /// <param name="remote">The remote to remove </param>
150
150
/// <param name="processor">A custom output processor instance</param>
151
151
/// <returns>String output of git command</returns>
152
152
ITask < string > RemoteRemove ( string remote , IOutputProcessor < string > processor = null ) ;
153
153
154
154
/// <summary>
155
155
/// Executes `git remote set-url` to change the url of a git remote.
156
156
/// </summary>
157
- /// <param name="remote"></param>
158
- /// <param name="url"></param>
157
+ /// <param name="remote">The remote to change </param>
158
+ /// <param name="url">The url to change to </param>
159
159
/// <param name="processor">A custom output processor instance</param>
160
160
/// <returns>String output of git command</returns>
161
161
ITask < string > RemoteChange ( string remote , string url , IOutputProcessor < string > processor = null ) ;
162
162
163
163
/// <summary>
164
164
/// Executes `git commit` to perform a commit operation.
165
165
/// </summary>
166
- /// <param name="message"></param>
167
- /// <param name="body"></param>
166
+ /// <param name="message">The commit message summary </param>
167
+ /// <param name="body">The commit message body </param>
168
168
/// <param name="processor">A custom output processor instance</param>
169
169
/// <returns>String output of git command</returns>
170
170
ITask < string > Commit ( string message , string body , IOutputProcessor < string > processor = null ) ;
171
171
172
172
/// <summary>
173
173
/// Executes at least one `git add` command to add the list of files to the git index.
174
174
/// </summary>
175
- /// <param name="files"></param>
175
+ /// <param name="files">The file to add </param>
176
176
/// <param name="processor">A custom output processor instance</param>
177
177
/// <returns>String output of git command</returns>
178
178
ITask < string > Add ( IList < string > files , IOutputProcessor < string > processor = null ) ;
@@ -187,7 +187,7 @@ public interface IGitClient
187
187
/// <summary>
188
188
/// Executes at least one `git checkout` command to discard changes to the list of files.
189
189
/// </summary>
190
- /// <param name="files"></param>
190
+ /// <param name="files">The files to discard </param>
191
191
/// <param name="processor">A custom output processor instance</param>
192
192
/// <returns>String output of git command</returns>
193
193
ITask < string > Discard ( IList < string > files , IOutputProcessor < string > processor = null ) ;
@@ -202,34 +202,34 @@ public interface IGitClient
202
202
/// <summary>
203
203
/// Executes `git reset HEAD` command to remove files from the git index.
204
204
/// </summary>
205
- /// <param name="files"></param>
205
+ /// <param name="files">The files to remove </param>
206
206
/// <param name="processor">A custom output processor instance</param>
207
207
/// <returns>String output of git command</returns>
208
208
ITask < string > Remove ( IList < string > files , IOutputProcessor < string > processor = null ) ;
209
209
210
210
/// <summary>
211
211
/// Executes at least one `git add` command to add the list of files to the git index. Followed by a `git commit` command to commit the changes.
212
212
/// </summary>
213
- /// <param name="files"></param>
214
- /// <param name="message"></param>
215
- /// <param name="body"></param>
213
+ /// <param name="files">The files to add and commit </param>
214
+ /// <param name="message">The commit message summary </param>
215
+ /// <param name="body">The commit message body </param>
216
216
/// <param name="processor">A custom output processor instance</param>
217
217
/// <returns>String output of git command</returns>
218
218
ITask < string > AddAndCommit ( IList < string > files , string message , string body , IOutputProcessor < string > processor = null ) ;
219
219
220
220
/// <summary>
221
221
/// Executes `git lfs lock` to lock a file.
222
222
/// </summary>
223
- /// <param name="file"></param>
223
+ /// <param name="file">The file to lock </param>
224
224
/// <param name="processor">A custom output processor instance</param>
225
225
/// <returns>String output of git command</returns>
226
226
ITask < string > Lock ( NPath file , IOutputProcessor < string > processor = null ) ;
227
227
228
228
/// <summary>
229
229
/// Executes `git lfs unlock` to unlock a file.
230
230
/// </summary>
231
- /// <param name="file"></param>
232
- /// <param name="force"></param>
231
+ /// <param name="file">The file to unlock </param>
232
+ /// <param name="force">If force should be used </param>
233
233
/// <param name="processor">A custom output processor instance</param>
234
234
/// <returns>String output of git command</returns>
235
235
ITask < string > Unlock ( NPath file , bool force , IOutputProcessor < string > processor = null ) ;
@@ -265,8 +265,8 @@ public interface IGitClient
265
265
/// <summary>
266
266
/// Executes two `git set config` commands to set the git name and email.
267
267
/// </summary>
268
- /// <param name="username"></param>
269
- /// <param name="email"></param>
268
+ /// <param name="username">The username to set </param>
269
+ /// <param name="email">The email to set </param>
270
270
/// <returns><see cref="GitUser"/> output</returns>
271
271
ITask < GitUser > SetConfigNameAndEmail ( string username , string email ) ;
272
272
0 commit comments