Fossil SCM

Adds minor output to stash command to alert users when a stash is successful. See [forum:fd2405eff30f4c73 | forum post fd2405eff30f4c73] for discussion.

andybradford 2022-05-14 14:38 trunk merge
Commit 07d739b4baf20af620967021c531fac14f50036f256a217121f547bf642b0e38
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