Fossil SCM

addremove command: in dry-run mode, add a line at the end alerting that no changes were made, per [forum:d80b624d0 | forum post request d80b624d0].

stephan 2022-05-13 13:21 trunk
Commit ef14017458238fa5bfb8b62956c8204ce401d68741a2d3bba23a6810197fa589
1 file changed +3 -1
+3 -1
--- src/add.c
+++ src/add.c
@@ -882,11 +882,13 @@
882882
}
883883
}
884884
db_finalize(&q);
885885
/* show command summary */
886886
fossil_print("added %d files, deleted %d files\n", nAdd, nDelete);
887
-
887
+ if(dryRunFlag!=0){
888
+ fossil_print("Dry-run mode: no changes were made.\n");
889
+ }
888890
db_end_transaction(dryRunFlag);
889891
}
890892
891893
/*
892894
** Rename a single file.
893895
--- src/add.c
+++ src/add.c
@@ -882,11 +882,13 @@
882 }
883 }
884 db_finalize(&q);
885 /* show command summary */
886 fossil_print("added %d files, deleted %d files\n", nAdd, nDelete);
887
 
 
888 db_end_transaction(dryRunFlag);
889 }
890
891 /*
892 ** Rename a single file.
893
--- src/add.c
+++ src/add.c
@@ -882,11 +882,13 @@
882 }
883 }
884 db_finalize(&q);
885 /* show command summary */
886 fossil_print("added %d files, deleted %d files\n", nAdd, nDelete);
887 if(dryRunFlag!=0){
888 fossil_print("Dry-run mode: no changes were made.\n");
889 }
890 db_end_transaction(dryRunFlag);
891 }
892
893 /*
894 ** Rename a single file.
895

Keyboard Shortcuts

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