Differences From Artifact [dc3cd2b054]:
- File src/add.c — part of check-in [11384f1874] at 2020-08-25 06:32:07 on branch trunk — Fix HTML formatting issues with a few built-in help pages. (user: drh size: 36745) [more...]
To Artifact [0621c962d3]:
- File src/add.c — part of check-in [0537925523] at 2020-09-15 19:23:02 on branch trunk — Remove some end-of-line whitespace and fix some very minor comment typos and capitalization errors (user: andygoth size: 36743)
| ︙ | ︙ | |||
191 192 193 194 195 196 197 | } } /* ** Add all files in the sfile temp table. ** ** Automatically exclude the repository file and any other files | | | 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
}
}
/*
** Add all files in the sfile temp table.
**
** Automatically exclude the repository file and any other files
** with reserved names. Also exclude files that are beneath an
** existing symlink.
*/
static int add_files_in_sfile(int vid){
const char *zRepo; /* Name of the repository database file */
int nAdd = 0; /* Number of files added */
int i; /* Loop counter */
const char *zReserved; /* Name of a reserved file */
|
| ︙ | ︙ | |||
214 215 216 217 218 219 220 |
zRepo = blob_str(&repoName);
}
if( filenames_are_case_sensitive() ){
xCmp = fossil_strcmp;
}else{
xCmp = fossil_stricmp;
}
| | | 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
zRepo = blob_str(&repoName);
}
if( filenames_are_case_sensitive() ){
xCmp = fossil_strcmp;
}else{
xCmp = fossil_stricmp;
}
db_prepare(&loop,
"SELECT pathname FROM sfile"
" WHERE pathname NOT IN ("
"SELECT sfile.pathname FROM vfile, sfile"
" WHERE vfile.islink"
" AND NOT vfile.deleted"
" AND sfile.pathname>(vfile.pathname||'/')"
" AND sfile.pathname<(vfile.pathname||'0'))"
|
| ︙ | ︙ |