Fossil SCM

Provide a little more output in stash command so when someone successfully finishes the stash command they don't think content has been lost.

andybradford 2022-04-26 23:45 trunk
Commit d08d7b872d33e0c43a6b5765d1b8f346a7c1e411a21a76032aade4ec53ccf048
1 file changed +1
--- src/stash.c
+++ src/stash.c
@@ -597,10 +597,11 @@
597597
/* Make sure the stash has committed before running the revert, so that
598598
** we have a copy of the changes before deleting them. */
599599
db_commit_transaction();
600600
g.argv[1] = "revert";
601601
revert_cmd();
602
+ fossil_print("stash %d saved\n", stashid);
602603
return;
603604
}else
604605
if( memcmp(zCmd, "snapshot", nCmd)==0 ){
605606
stash_create();
606607
}else
607608
--- 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

Keyboard Shortcuts

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