Fossil SCM

Fix the "clean" command to use --force instead of --all. Ticket [c3d668ad52]

drh 2009-10-11 19:52 trunk
Commit 5308e4681530d77a3d023183f3b90ed1a0eebf75
1 file changed +2 -2
+2 -2
--- src/checkin.c
+++ src/checkin.c
@@ -206,11 +206,11 @@
206206
** files that are not officially part of the checkout. See also
207207
** the "extra" command. This operation cannot be undone.
208208
**
209209
** You will be prompted before removing each file. If you are
210210
** sure you wish to remove all "extra" files you can specify the
211
-** optional --force flag and no prmpts will be issued.
211
+** optional --force flag and no prompts will be issued.
212212
**
213213
** Files and subdirectories whose names begin with "." are
214214
** normally ignored. They are included if the "--dotfiles" option
215215
** is used.
216216
*/
@@ -218,11 +218,11 @@
218218
int allFlag;
219219
int dotfilesFlag;
220220
Blob path, repo;
221221
Stmt q;
222222
int n;
223
- allFlag = find_option("all","a",0)!=0;
223
+ allFlag = find_option("force","f",0)!=0;
224224
dotfilesFlag = find_option("dotfiles",0,0)!=0;
225225
db_must_be_within_tree();
226226
db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)");
227227
n = strlen(g.zLocalRoot);
228228
blob_init(&path, g.zLocalRoot, n-1);
229229
--- src/checkin.c
+++ src/checkin.c
@@ -206,11 +206,11 @@
206 ** files that are not officially part of the checkout. See also
207 ** the "extra" command. This operation cannot be undone.
208 **
209 ** You will be prompted before removing each file. If you are
210 ** sure you wish to remove all "extra" files you can specify the
211 ** optional --force flag and no prmpts will be issued.
212 **
213 ** Files and subdirectories whose names begin with "." are
214 ** normally ignored. They are included if the "--dotfiles" option
215 ** is used.
216 */
@@ -218,11 +218,11 @@
218 int allFlag;
219 int dotfilesFlag;
220 Blob path, repo;
221 Stmt q;
222 int n;
223 allFlag = find_option("all","a",0)!=0;
224 dotfilesFlag = find_option("dotfiles",0,0)!=0;
225 db_must_be_within_tree();
226 db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)");
227 n = strlen(g.zLocalRoot);
228 blob_init(&path, g.zLocalRoot, n-1);
229
--- src/checkin.c
+++ src/checkin.c
@@ -206,11 +206,11 @@
206 ** files that are not officially part of the checkout. See also
207 ** the "extra" command. This operation cannot be undone.
208 **
209 ** You will be prompted before removing each file. If you are
210 ** sure you wish to remove all "extra" files you can specify the
211 ** optional --force flag and no prompts will be issued.
212 **
213 ** Files and subdirectories whose names begin with "." are
214 ** normally ignored. They are included if the "--dotfiles" option
215 ** is used.
216 */
@@ -218,11 +218,11 @@
218 int allFlag;
219 int dotfilesFlag;
220 Blob path, repo;
221 Stmt q;
222 int n;
223 allFlag = find_option("force","f",0)!=0;
224 dotfilesFlag = find_option("dotfiles",0,0)!=0;
225 db_must_be_within_tree();
226 db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)");
227 n = strlen(g.zLocalRoot);
228 blob_init(&path, g.zLocalRoot, n-1);
229

Keyboard Shortcuts

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