Fossil SCM
Move "sha1sum" to an auxiliary command. Promote "test-md5sum" to an auxiliary command.
Commit
dde919a4639e1bc48f1450172a31f1dd3465f5df
Parent
841772c858ac63a…
2 files changed
+3
-2
+1
-1
+3
-2
| --- src/md5.c | ||
| +++ src/md5.c | ||
| @@ -421,14 +421,15 @@ | ||
| 421 | 421 | return 0; |
| 422 | 422 | } |
| 423 | 423 | |
| 424 | 424 | |
| 425 | 425 | /* |
| 426 | -** COMMAND: test-md5sum | |
| 426 | +** COMMAND: md5sum* | |
| 427 | +** Usage: %fossil md5sum FILES.... | |
| 427 | 428 | ** |
| 428 | 429 | ** Compute an MD5 checksum of all files named on the command-line. |
| 429 | -** If an file is named "-" then take its content from standard input. | |
| 430 | +** If a file is named "-" then content is read from standard input. | |
| 430 | 431 | */ |
| 431 | 432 | void md5sum_test(void){ |
| 432 | 433 | int i; |
| 433 | 434 | Blob in; |
| 434 | 435 | Blob cksum; |
| 435 | 436 |
| --- src/md5.c | |
| +++ src/md5.c | |
| @@ -421,14 +421,15 @@ | |
| 421 | return 0; |
| 422 | } |
| 423 | |
| 424 | |
| 425 | /* |
| 426 | ** COMMAND: test-md5sum |
| 427 | ** |
| 428 | ** Compute an MD5 checksum of all files named on the command-line. |
| 429 | ** If an file is named "-" then take its content from standard input. |
| 430 | */ |
| 431 | void md5sum_test(void){ |
| 432 | int i; |
| 433 | Blob in; |
| 434 | Blob cksum; |
| 435 |
| --- src/md5.c | |
| +++ src/md5.c | |
| @@ -421,14 +421,15 @@ | |
| 421 | return 0; |
| 422 | } |
| 423 | |
| 424 | |
| 425 | /* |
| 426 | ** COMMAND: md5sum* |
| 427 | ** Usage: %fossil md5sum FILES.... |
| 428 | ** |
| 429 | ** Compute an MD5 checksum of all files named on the command-line. |
| 430 | ** If a file is named "-" then content is read from standard input. |
| 431 | */ |
| 432 | void md5sum_test(void){ |
| 433 | int i; |
| 434 | Blob in; |
| 435 | Blob cksum; |
| 436 |
+1
-1
| --- src/sha1.c | ||
| +++ src/sha1.c | ||
| @@ -437,11 +437,11 @@ | ||
| 437 | 437 | sqlite3_result_text(context, sha1_shared_secret(zPw, zLogin, zProjid), -1, |
| 438 | 438 | fossil_free); |
| 439 | 439 | } |
| 440 | 440 | |
| 441 | 441 | /* |
| 442 | -** COMMAND: sha1sum | |
| 442 | +** COMMAND: sha1sum* | |
| 443 | 443 | ** %fossil sha1sum FILE... |
| 444 | 444 | ** |
| 445 | 445 | ** Compute an SHA1 checksum of all files named on the command-line. |
| 446 | 446 | ** If an file is named "-" then take its content from standard input. |
| 447 | 447 | */ |
| 448 | 448 |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -437,11 +437,11 @@ | |
| 437 | sqlite3_result_text(context, sha1_shared_secret(zPw, zLogin, zProjid), -1, |
| 438 | fossil_free); |
| 439 | } |
| 440 | |
| 441 | /* |
| 442 | ** COMMAND: sha1sum |
| 443 | ** %fossil sha1sum FILE... |
| 444 | ** |
| 445 | ** Compute an SHA1 checksum of all files named on the command-line. |
| 446 | ** If an file is named "-" then take its content from standard input. |
| 447 | */ |
| 448 |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -437,11 +437,11 @@ | |
| 437 | sqlite3_result_text(context, sha1_shared_secret(zPw, zLogin, zProjid), -1, |
| 438 | fossil_free); |
| 439 | } |
| 440 | |
| 441 | /* |
| 442 | ** COMMAND: sha1sum* |
| 443 | ** %fossil sha1sum FILE... |
| 444 | ** |
| 445 | ** Compute an SHA1 checksum of all files named on the command-line. |
| 446 | ** If an file is named "-" then take its content from standard input. |
| 447 | */ |
| 448 |