Fossil SCM

Fix the "addremove" command so that it honors the "ignore-glob" setting. Ticket [9bd235c69af99b3a6a]

drh 2011-01-13 19:55 trunk
Commit 356e877ceaf7211509644cfda682f65ae2a0d51b
1 file changed +1 -1
+1 -1
--- src/add.c
+++ src/add.c
@@ -416,14 +416,14 @@
416416
int vid;
417417
Blob repo;
418418
int nAdd = 0;
419419
int nDelete = 0;
420420
421
+ db_must_be_within_tree();
421422
if( zIgnoreFlag==0 ){
422423
zIgnoreFlag = db_get("ignore-glob", 0);
423424
}
424
- db_must_be_within_tree();
425425
vid = db_lget_int("checkout",0);
426426
if( vid==0 ){
427427
fossil_panic("no checkout to add to");
428428
}
429429
db_begin_transaction();
430430
--- src/add.c
+++ src/add.c
@@ -416,14 +416,14 @@
416 int vid;
417 Blob repo;
418 int nAdd = 0;
419 int nDelete = 0;
420
 
421 if( zIgnoreFlag==0 ){
422 zIgnoreFlag = db_get("ignore-glob", 0);
423 }
424 db_must_be_within_tree();
425 vid = db_lget_int("checkout",0);
426 if( vid==0 ){
427 fossil_panic("no checkout to add to");
428 }
429 db_begin_transaction();
430
--- src/add.c
+++ src/add.c
@@ -416,14 +416,14 @@
416 int vid;
417 Blob repo;
418 int nAdd = 0;
419 int nDelete = 0;
420
421 db_must_be_within_tree();
422 if( zIgnoreFlag==0 ){
423 zIgnoreFlag = db_get("ignore-glob", 0);
424 }
 
425 vid = db_lget_int("checkout",0);
426 if( vid==0 ){
427 fossil_panic("no checkout to add to");
428 }
429 db_begin_transaction();
430

Keyboard Shortcuts

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