Fossil SCM
Propose an enhanced changes command. At this point, there is no implementation, only help text describing the new options and behaviors.
Commit
2bfdbf97c66e3932b2a057259257534d9df1349b
Parent
0b50909c5fd2fba…
1 file changed
+35
-7
+35
-7
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -201,23 +201,51 @@ | ||
| 201 | 201 | /* |
| 202 | 202 | ** COMMAND: changes |
| 203 | 203 | ** |
| 204 | 204 | ** Usage: %fossil changes ?OPTIONS? |
| 205 | 205 | ** |
| 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. | |
| 207 | 222 | ** |
| 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". | |
| 210 | 224 | ** |
| 211 | 225 | ** Options: |
| 212 | 226 | ** --abs-paths Display absolute pathnames. |
| 213 | 227 | ** --rel-paths Display pathnames relative to the current working |
| 214 | 228 | ** 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. | |
| 219 | 247 | ** |
| 220 | 248 | ** See also: extras, ls, status |
| 221 | 249 | */ |
| 222 | 250 | void changes_cmd(void){ |
| 223 | 251 | int useSha1sum = find_option("sha1sum", 0, 0)!=0; |
| 224 | 252 |
| --- 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 |