Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix an apparent bug in the "fossil grep" command causing it to miss the first character of each line. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
5421caa21aa83033a6101cf0b6d81d0a |
User & Date: | drh 2019-07-08 17:11:41 |
Context
2019-07-08
| ||
19:14 | Renamed the test-move-repository command to local-repo, since it's useful for more than just testing, and there's no good alternative in the main command set otherwise. It is especially useful with local-only repos, since that means use of the sync and remote-url commands isn't the correct way to change the location of the local repo. check-in: a52c3e12 user: wyoung tags: trunk | |
17:11 | Fix an apparent bug in the "fossil grep" command causing it to miss the first character of each line. check-in: 5421caa2 user: drh tags: trunk | |
17:05 | Update the built-in SQLite to the first 3.29.0 beta for testing. Enable the -DSQLITE_DQS=0 compile-time option for Fossil, thus preventing SQLite from using double-quoted string literals by default. check-in: 0c0f6db7 user: drh tags: trunk | |
Changes
Changes to src/regexp.c.
731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 |
const char *z,
u32 flags
){
int i, j, n, ln, cnt;
for(i=j=ln=cnt=0; z[i]; i=j+1){
for(j=i; z[j] && z[j]!='\n'; j++){}
n = j - i;
if( z[j]=='\n' ) j++;
ln++;
if( re_match(pRe, (const unsigned char*)(z+i), j-i) ){
cnt++;
if( flags & GREP_EXISTS ){
fossil_print("%s\n", zName);
break;
}
|
< |
731 732 733 734 735 736 737 738 739 740 741 742 743 744 |
const char *z, u32 flags ){ int i, j, n, ln, cnt; for(i=j=ln=cnt=0; z[i]; i=j+1){ for(j=i; z[j] && z[j]!='\n'; j++){} n = j - i; ln++; if( re_match(pRe, (const unsigned char*)(z+i), j-i) ){ cnt++; if( flags & GREP_EXISTS ){ fossil_print("%s\n", zName); break; } |