Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Correct two typos in comments. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | mvAndRmFiles |
| Files: | files | file ages | folders |
| SHA1: |
b4d1c30ca31d383af85b53334d85b872 |
| User & Date: | mistachkin 2015-02-25 01:21:18.496 |
Context
|
2015-03-03
| ||
| 22:52 | Merge updates from trunk. ... (check-in: 0a0be9e1e1 user: mistachkin tags: mvAndRmFiles) | |
|
2015-02-25
| ||
| 01:21 | Correct two typos in comments. ... (check-in: b4d1c30ca3 user: mistachkin tags: mvAndRmFiles) | |
|
2015-02-24
| ||
| 02:42 | Remove stray blank line. ... (check-in: 89f8542973 user: mistachkin tags: mvAndRmFiles) | |
Changes
Changes to src/add.c.
| ︙ | ︙ | |||
344 345 346 347 348 349 350 |
Blob fullOldName;
file_canonical_name(zOldName, &fullOldName, 0);
db_multi_exec("INSERT INTO fremove VALUES('%q');", blob_str(&fullOldName));
blob_reset(&fullOldName);
}
static void process_files_to_remove(
| | | 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 |
Blob fullOldName;
file_canonical_name(zOldName, &fullOldName, 0);
db_multi_exec("INSERT INTO fremove VALUES('%q');", blob_str(&fullOldName));
blob_reset(&fullOldName);
}
static void process_files_to_remove(
int dryRunFlag /* Zero to actually operate on the file-system. */
){
Stmt remove;
db_prepare(&remove, "SELECT x FROM fremove ORDER BY x;");
while( db_step(&remove)==SQLITE_ROW ){
const char *zOldName = db_column_text(&remove, 0);
if( !dryRunFlag ){
file_delete(zOldName);
|
| ︙ | ︙ | |||
673 674 675 676 677 678 679 |
db_multi_exec("INSERT INTO fmove VALUES('%q','%q');",
blob_str(&fullOldName), blob_str(&fullNewName));
blob_reset(&fullNewName);
blob_reset(&fullOldName);
}
static void process_files_to_move(
| | | 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 |
db_multi_exec("INSERT INTO fmove VALUES('%q','%q');",
blob_str(&fullOldName), blob_str(&fullNewName));
blob_reset(&fullNewName);
blob_reset(&fullOldName);
}
static void process_files_to_move(
int dryRunFlag /* Zero to actually operate on the file-system. */
){
Stmt move;
db_prepare(&move, "SELECT x, y FROM fmove ORDER BY x;");
while( db_step(&move)==SQLITE_ROW ){
const char *zOldName = db_column_text(&move, 0);
const char *zNewName = db_column_text(&move, 1);
if( !dryRunFlag ){
|
| ︙ | ︙ |