Fossil SCM
"stash ls", in addition to "stash list"
Commit
9abf05437bf5ec2a8067485131699dd3eb42e70a
Parent
8b5556c9feaeb36…
1 file changed
+2
-1
+2
-1
| --- src/stash.c | ||
| +++ src/stash.c | ||
| @@ -317,10 +317,11 @@ | ||
| 317 | 317 | ** are listed, then only stash and revert the named files. The |
| 318 | 318 | ** "save" verb can be omitted if and only if there are no other |
| 319 | 319 | ** arguments. |
| 320 | 320 | ** |
| 321 | 321 | ** fossil stash list |
| 322 | +** fossil stash ls | |
| 322 | 323 | ** |
| 323 | 324 | ** List all changes sets currently stashed. |
| 324 | 325 | ** |
| 325 | 326 | ** fossil stash pop |
| 326 | 327 | ** |
| @@ -398,11 +399,11 @@ | ||
| 398 | 399 | revert_cmd(); |
| 399 | 400 | }else |
| 400 | 401 | if( memcmp(zCmd, "snapshot", nCmd)==0 ){ |
| 401 | 402 | stash_create(); |
| 402 | 403 | }else |
| 403 | - if( memcmp(zCmd, "list", nCmd)==0 ){ | |
| 404 | + if( (memcmp(zCmd, "list", nCmd)==0)||((memcmp(zCmd, "ls", nCmd)==0) )){ | |
| 404 | 405 | Stmt q; |
| 405 | 406 | int n = 0; |
| 406 | 407 | verify_all_options(); |
| 407 | 408 | db_prepare(&q, |
| 408 | 409 | "SELECT stashid, (SELECT uuid FROM blob WHERE rid=vid)," |
| 409 | 410 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -317,10 +317,11 @@ | |
| 317 | ** are listed, then only stash and revert the named files. The |
| 318 | ** "save" verb can be omitted if and only if there are no other |
| 319 | ** arguments. |
| 320 | ** |
| 321 | ** fossil stash list |
| 322 | ** |
| 323 | ** List all changes sets currently stashed. |
| 324 | ** |
| 325 | ** fossil stash pop |
| 326 | ** |
| @@ -398,11 +399,11 @@ | |
| 398 | revert_cmd(); |
| 399 | }else |
| 400 | if( memcmp(zCmd, "snapshot", nCmd)==0 ){ |
| 401 | stash_create(); |
| 402 | }else |
| 403 | if( memcmp(zCmd, "list", nCmd)==0 ){ |
| 404 | Stmt q; |
| 405 | int n = 0; |
| 406 | verify_all_options(); |
| 407 | db_prepare(&q, |
| 408 | "SELECT stashid, (SELECT uuid FROM blob WHERE rid=vid)," |
| 409 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -317,10 +317,11 @@ | |
| 317 | ** are listed, then only stash and revert the named files. The |
| 318 | ** "save" verb can be omitted if and only if there are no other |
| 319 | ** arguments. |
| 320 | ** |
| 321 | ** fossil stash list |
| 322 | ** fossil stash ls |
| 323 | ** |
| 324 | ** List all changes sets currently stashed. |
| 325 | ** |
| 326 | ** fossil stash pop |
| 327 | ** |
| @@ -398,11 +399,11 @@ | |
| 399 | revert_cmd(); |
| 400 | }else |
| 401 | if( memcmp(zCmd, "snapshot", nCmd)==0 ){ |
| 402 | stash_create(); |
| 403 | }else |
| 404 | if( (memcmp(zCmd, "list", nCmd)==0)||((memcmp(zCmd, "ls", nCmd)==0) )){ |
| 405 | Stmt q; |
| 406 | int n = 0; |
| 407 | verify_all_options(); |
| 408 | db_prepare(&q, |
| 409 | "SELECT stashid, (SELECT uuid FROM blob WHERE rid=vid)," |
| 410 |