Fossil SCM

Propose an enhanced changes command. At this point, there is no implementation, only help text describing the new options and behaviors.

andygoth 2016-10-11 21:07 trunk
Commit 2bfdbf97c66e3932b2a057259257534d9df1349b
1 file changed +35 -7
+35 -7
--- src/checkin.c
+++ src/checkin.c
@@ -201,23 +201,51 @@
201201
/*
202202
** COMMAND: changes
203203
**
204204
** Usage: %fossil changes ?OPTIONS?
205205
**
206
-** Report on the edit status of all files in the current checkout.
206
+** Report the change status of files in the current checkout.
207
+**
208
+** Each line of output is the name of a changed file, with paths shown
209
+** according to the "relative-paths" setting, unless overridden by the
210
+** --abs-paths or --rel-paths options.
211
+**
212
+** By default, all changed files are selected for display. This behavior
213
+** can be overridden by using one or more filter options (listed below),
214
+** in which case only files with the specified change type(s) are shown.
215
+**
216
+** If file change type classification is enabled, each output line starts
217
+** with a code describing the file's change type, e.g. EDITED or RENAMED.
218
+** This can be turned on or off using the --classify or --no-classify
219
+** options, respectively. By default, it is enabled only when more than
220
+** one change type is enabled (i.e. zero or multiple filter options or
221
+** --all are used) and disabled when only one change type is enabled.
207222
**
208
-** Pathnames are displayed according to the "relative-paths" setting,
209
-** unless overridden by the --abs-paths or --rel-paths options.
223
+** The "fossil changes -extra" command is equivalent to "fossil extras".
210224
**
211225
** Options:
212226
** --abs-paths Display absolute pathnames.
213227
** --rel-paths Display pathnames relative to the current working
214228
** directory.
215
-** --sha1sum Verify file status using SHA1 hashing rather
216
-** than relying on file mtimes.
217
-** --header Identify the repository if there are changes
218
-** -v|--verbose Say "(none)" if there are no changes
229
+** --sha1sum Verify file status using SHA1 hashing rather than
230
+** relying on file mtimes.
231
+** --header Identify the repository if any files are listed.
232
+** -v|--verbose Say "(none)" if no files are listed.
233
+** --classify Start each line with the file's change type.
234
+** --no-classify Do not print file change types.
235
+**
236
+** Filter options:
237
+** --edited Display edited files.
238
+** --missing Display missing files.
239
+** --added Display added files.
240
+** --deleted Display deleted files.
241
+** --renamed Display renamed files.
242
+** --conflict Display merge conflict files.
243
+** --unmodified Display unmodified files.
244
+** --meta Display files with metadata changes.
245
+** --all Display all managed files, i.e. all of the above.
246
+** --extra Display unmanaged files.
219247
**
220248
** See also: extras, ls, status
221249
*/
222250
void changes_cmd(void){
223251
int useSha1sum = find_option("sha1sum", 0, 0)!=0;
224252
--- src/checkin.c
+++ src/checkin.c
@@ -201,23 +201,51 @@
201 /*
202 ** COMMAND: changes
203 **
204 ** Usage: %fossil changes ?OPTIONS?
205 **
206 ** Report on the edit status of all files in the current checkout.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207 **
208 ** Pathnames are displayed according to the "relative-paths" setting,
209 ** unless overridden by the --abs-paths or --rel-paths options.
210 **
211 ** Options:
212 ** --abs-paths Display absolute pathnames.
213 ** --rel-paths Display pathnames relative to the current working
214 ** directory.
215 ** --sha1sum Verify file status using SHA1 hashing rather
216 ** than relying on file mtimes.
217 ** --header Identify the repository if there are changes
218 ** -v|--verbose Say "(none)" if there are no changes
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219 **
220 ** See also: extras, ls, status
221 */
222 void changes_cmd(void){
223 int useSha1sum = find_option("sha1sum", 0, 0)!=0;
224
--- src/checkin.c
+++ src/checkin.c
@@ -201,23 +201,51 @@
201 /*
202 ** COMMAND: changes
203 **
204 ** Usage: %fossil changes ?OPTIONS?
205 **
206 ** Report the change status of files in the current checkout.
207 **
208 ** Each line of output is the name of a changed file, with paths shown
209 ** according to the "relative-paths" setting, unless overridden by the
210 ** --abs-paths or --rel-paths options.
211 **
212 ** By default, all changed files are selected for display. This behavior
213 ** can be overridden by using one or more filter options (listed below),
214 ** in which case only files with the specified change type(s) are shown.
215 **
216 ** If file change type classification is enabled, each output line starts
217 ** with a code describing the file's change type, e.g. EDITED or RENAMED.
218 ** This can be turned on or off using the --classify or --no-classify
219 ** options, respectively. By default, it is enabled only when more than
220 ** one change type is enabled (i.e. zero or multiple filter options or
221 ** --all are used) and disabled when only one change type is enabled.
222 **
223 ** The "fossil changes -extra" command is equivalent to "fossil extras".
 
224 **
225 ** Options:
226 ** --abs-paths Display absolute pathnames.
227 ** --rel-paths Display pathnames relative to the current working
228 ** directory.
229 ** --sha1sum Verify file status using SHA1 hashing rather than
230 ** relying on file mtimes.
231 ** --header Identify the repository if any files are listed.
232 ** -v|--verbose Say "(none)" if no files are listed.
233 ** --classify Start each line with the file's change type.
234 ** --no-classify Do not print file change types.
235 **
236 ** Filter options:
237 ** --edited Display edited files.
238 ** --missing Display missing files.
239 ** --added Display added files.
240 ** --deleted Display deleted files.
241 ** --renamed Display renamed files.
242 ** --conflict Display merge conflict files.
243 ** --unmodified Display unmodified files.
244 ** --meta Display files with metadata changes.
245 ** --all Display all managed files, i.e. all of the above.
246 ** --extra Display unmanaged files.
247 **
248 ** See also: extras, ls, status
249 */
250 void changes_cmd(void){
251 int useSha1sum = find_option("sha1sum", 0, 0)!=0;
252

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button