Fossil SCM
Adds minor output to stash command to alert users when a stash is successful. See [forum:fd2405eff30f4c73 | forum post fd2405eff30f4c73] for discussion.
Commit
07d739b4baf20af620967021c531fac14f50036f256a217121f547bf642b0e38
Parent
7ae1f31994e9b90…
1 file changed
+1
+1
| --- src/stash.c | ||
| +++ src/stash.c | ||
| @@ -597,10 +597,11 @@ | ||
| 597 | 597 | /* Make sure the stash has committed before running the revert, so that |
| 598 | 598 | ** we have a copy of the changes before deleting them. */ |
| 599 | 599 | db_commit_transaction(); |
| 600 | 600 | g.argv[1] = "revert"; |
| 601 | 601 | revert_cmd(); |
| 602 | + fossil_print("stash %d saved\n", stashid); | |
| 602 | 603 | return; |
| 603 | 604 | }else |
| 604 | 605 | if( memcmp(zCmd, "snapshot", nCmd)==0 ){ |
| 605 | 606 | stash_create(); |
| 606 | 607 | }else |
| 607 | 608 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -597,10 +597,11 @@ | |
| 597 | /* Make sure the stash has committed before running the revert, so that |
| 598 | ** we have a copy of the changes before deleting them. */ |
| 599 | db_commit_transaction(); |
| 600 | g.argv[1] = "revert"; |
| 601 | revert_cmd(); |
| 602 | return; |
| 603 | }else |
| 604 | if( memcmp(zCmd, "snapshot", nCmd)==0 ){ |
| 605 | stash_create(); |
| 606 | }else |
| 607 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -597,10 +597,11 @@ | |
| 597 | /* Make sure the stash has committed before running the revert, so that |
| 598 | ** we have a copy of the changes before deleting them. */ |
| 599 | db_commit_transaction(); |
| 600 | g.argv[1] = "revert"; |
| 601 | revert_cmd(); |
| 602 | fossil_print("stash %d saved\n", stashid); |
| 603 | return; |
| 604 | }else |
| 605 | if( memcmp(zCmd, "snapshot", nCmd)==0 ){ |
| 606 | stash_create(); |
| 607 | }else |
| 608 |