Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Completely forget about files that were added then removed without ever been committed. |
|---|---|
| Timelines: | family | ancestors | descendants | both | experimental |
| Files: | files | file ages | folders |
| SHA1: |
97e5ff20d73f812fe5b5d6f9c6000864 |
| User & Date: | drh 2011-04-15 00:59:32.384 |
| Original Comment: | Completely forget about files that were added then removed without ever been committed. |
Context
|
2011-04-15
| ||
| 11:57 | Merge the refactored "add", "del", and "addremove" commands into trunk. check-in: 8ae917362c user: drh tags: trunk | |
| 00:59 | Completely forget about files that were added then removed without ever been committed. Closed-Leaf check-in: 97e5ff20d7 user: drh tags: experimental | |
|
2011-04-14
| ||
| 22:41 | Refactoring the "add", "del", and "addremove" commands. check-in: 2b95102592 user: drh tags: experimental | |
Changes
Changes to src/add.c.
| ︙ | ︙ | |||
282 283 284 285 286 287 288 |
db_prepare(&loop, "SELECT x FROM sfile");
while( db_step(&loop)==SQLITE_ROW ){
printf("DELETED %s\n", db_column_text(&loop, 0));
}
db_finalize(&loop);
db_multi_exec(
| | > | 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
db_prepare(&loop, "SELECT x FROM sfile");
while( db_step(&loop)==SQLITE_ROW ){
printf("DELETED %s\n", db_column_text(&loop, 0));
}
db_finalize(&loop);
db_multi_exec(
"UPDATE vfile SET deleted=1 WHERE pathname IN sfile;"
"DELETE FROM vfile WHERE rid=0 AND deleted;"
);
db_end_transaction(0);
}
/*
** COMMAND: addremove
**
|
| ︙ | ︙ |