Fossil SCM

Integrate andygoth-crlf. This renames CRNL to CRLF throughout Fossil. crnl-glob is renamed to crlf-glob, but crnl-glob is retained as a compatibility alias.

andygoth 2016-11-07 01:10 trunk merge
Commit 87320cf482e9bceb4445624689e8b98ed72c9e86
+20 -19
--- src/checkin.c
+++ src/checkin.c
@@ -1701,16 +1701,16 @@
17011701
** Issue a warning and give the user an opportunity to abandon out
17021702
** if a Unicode (UTF-16) byte-order-mark (BOM) or a \r\n line ending
17031703
** is seen in a text file.
17041704
**
17051705
** Return 1 if the user pressed 'c'. In that case, the file will have
1706
-** been converted to UTF-8 (if it was UTF-16) with NL line-endings,
1706
+** been converted to UTF-8 (if it was UTF-16) with LF line-endings,
17071707
** and the original file will have been renamed to "<filename>-original".
17081708
*/
17091709
static int commit_warning(
17101710
Blob *pContent, /* The content of the file being committed. */
1711
- int crnlOk, /* Non-zero if CR/NL warnings should be disabled. */
1711
+ int crlfOk, /* Non-zero if CR/LF warnings should be disabled. */
17121712
int binOk, /* Non-zero if binary warnings should be disabled. */
17131713
int encodingOk, /* Non-zero if encoding warnings should be disabled. */
17141714
int noPrompt, /* 0 to always prompt, 1 for 'N', 2 for 'Y'. */
17151715
const char *zFilename, /* The full name of the file being committed. */
17161716
Blob *pReason /* Reason for warning, if any (non-fatal only). */
@@ -1761,39 +1761,39 @@
17611761
zWarning = "binary data";
17621762
zConvert = ""; /* We cannot convert binary files. */
17631763
}
17641764
zDisable = "\"binary-glob\" setting";
17651765
}else if( fUnicode && fHasAnyCr ){
1766
- if( crnlOk && encodingOk ){
1767
- return 0; /* We don't want CR/NL and Unicode warnings for this file. */
1766
+ if( crlfOk && encodingOk ){
1767
+ return 0; /* We don't want CR/LF and Unicode warnings for this file. */
17681768
}
17691769
if( fHasLoneCrOnly ){
17701770
zWarning = "CR line endings and Unicode";
17711771
}else if( fHasCrLfOnly ){
1772
- zWarning = "CR/NL line endings and Unicode";
1772
+ zWarning = "CR/LF line endings and Unicode";
17731773
}else{
17741774
zWarning = "mixed line endings and Unicode";
17751775
}
1776
- zDisable = "\"crnl-glob\" and \"encoding-glob\" settings";
1776
+ zDisable = "\"crlf-glob\" and \"encoding-glob\" settings";
17771777
}else if( fHasInvalidUtf8 ){
17781778
if( encodingOk ){
17791779
return 0; /* We don't want encoding warnings for this file. */
17801780
}
17811781
zWarning = "invalid UTF-8";
17821782
zDisable = "\"encoding-glob\" setting";
17831783
}else if( fHasAnyCr ){
1784
- if( crnlOk ){
1785
- return 0; /* We don't want CR/NL warnings for this file. */
1784
+ if( crlfOk ){
1785
+ return 0; /* We don't want CR/LF warnings for this file. */
17861786
}
17871787
if( fHasLoneCrOnly ){
17881788
zWarning = "CR line endings";
17891789
}else if( fHasCrLfOnly ){
1790
- zWarning = "CR/NL line endings";
1790
+ zWarning = "CR/LF line endings";
17911791
}else{
17921792
zWarning = "mixed line endings";
17931793
}
1794
- zDisable = "\"crnl-glob\" setting";
1794
+ zDisable = "\"crlf-glob\" setting";
17951795
}else{
17961796
if( encodingOk ){
17971797
return 0; /* We don't want encoding warnings for this file. */
17981798
}
17991799
zWarning = "Unicode";
@@ -1880,35 +1880,36 @@
18801880
db_must_be_within_tree();
18811881
db_prepare(&q,
18821882
"SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile"
18831883
" WHERE NOT deleted",
18841884
g.zLocalRoot,
1885
- glob_expr("pathname", noSettings ? 0 : db_get("crnl-glob","")),
1885
+ glob_expr("pathname", noSettings ? 0 : db_get("crlf-glob",
1886
+ db_get("crnl-glob",""))),
18861887
glob_expr("pathname", noSettings ? 0 : db_get("binary-glob","")),
18871888
glob_expr("pathname", noSettings ? 0 : db_get("encoding-glob",""))
18881889
);
18891890
while( db_step(&q)==SQLITE_ROW ){
18901891
const char *zFullname;
18911892
const char *zName;
18921893
Blob content;
18931894
Blob reason;
1894
- int crnlOk, binOk, encodingOk;
1895
+ int crlfOk, binOk, encodingOk;
18951896
int fileRc;
18961897
18971898
zFullname = db_column_text(&q, 0);
18981899
zName = db_column_text(&q, 1);
1899
- crnlOk = db_column_int(&q, 2);
1900
+ crlfOk = db_column_int(&q, 2);
19001901
binOk = db_column_int(&q, 3);
19011902
encodingOk = db_column_int(&q, 4);
19021903
blob_zero(&content);
19031904
if( file_wd_islink(zFullname) ){
19041905
blob_read_link(&content, zFullname);
19051906
}else{
19061907
blob_read_from_file(&content, zFullname);
19071908
}
19081909
blob_zero(&reason);
1909
- fileRc = commit_warning(&content, crnlOk, binOk, encodingOk, 2,
1910
+ fileRc = commit_warning(&content, crlfOk, binOk, encodingOk, 2,
19101911
zFullname, &reason);
19111912
if( fileRc || verboseFlag ){
19121913
fossil_print("%d\t%s\t%s\n", fileRc, zName, blob_str(&reason));
19131914
}
19141915
blob_reset(&reason);
@@ -1964,11 +1965,11 @@
19641965
** be older than its ancestor unless the --allow-older option appears.
19651966
** If any of files in the check-in appear to contain unresolved merge
19661967
** conflicts, the check-in will not be allowed unless the
19671968
** --allow-conflict option is present. In addition, the entire
19681969
** check-in process may be aborted if a file contains content that
1969
-** appears to be binary, Unicode text, or text with CR/NL line endings
1970
+** appears to be binary, Unicode text, or text with CR/LF line endings
19701971
** unless the interactive user chooses to proceed. If there is no
19711972
** interactive user or these warnings should be skipped for some other
19721973
** reason, the --no-warnings option may be used. A check-in is not
19731974
** allowed against a closed leaf.
19741975
**
@@ -2338,24 +2339,24 @@
23382339
*/
23392340
db_prepare(&q,
23402341
"SELECT id, %Q || pathname, mrid, %s, %s, %s FROM vfile "
23412342
"WHERE chnged==1 AND NOT deleted AND is_selected(id)",
23422343
g.zLocalRoot,
2343
- glob_expr("pathname", db_get("crnl-glob","")),
2344
+ glob_expr("pathname", db_get("crlf-glob",db_get("crnl-glob",""))),
23442345
glob_expr("pathname", db_get("binary-glob","")),
23452346
glob_expr("pathname", db_get("encoding-glob",""))
23462347
);
23472348
while( db_step(&q)==SQLITE_ROW ){
23482349
int id, rid;
23492350
const char *zFullname;
23502351
Blob content;
2351
- int crnlOk, binOk, encodingOk;
2352
+ int crlfOk, binOk, encodingOk;
23522353
23532354
id = db_column_int(&q, 0);
23542355
zFullname = db_column_text(&q, 1);
23552356
rid = db_column_int(&q, 2);
2356
- crnlOk = db_column_int(&q, 3);
2357
+ crlfOk = db_column_int(&q, 3);
23572358
binOk = db_column_int(&q, 4);
23582359
encodingOk = db_column_int(&q, 5);
23592360
23602361
blob_zero(&content);
23612362
if( file_wd_islink(zFullname) ){
@@ -2364,11 +2365,11 @@
23642365
}else{
23652366
blob_read_from_file(&content, zFullname);
23662367
}
23672368
/* Do not emit any warnings when they are disabled. */
23682369
if( !noWarningFlag ){
2369
- abortCommit |= commit_warning(&content, crnlOk, binOk,
2370
+ abortCommit |= commit_warning(&content, crlfOk, binOk,
23702371
encodingOk, noPrompt,
23712372
zFullname, 0);
23722373
}
23732374
if( contains_merge_marker(&content) ){
23742375
Blob fname; /* Relative pathname of the file */
23752376
--- src/checkin.c
+++ src/checkin.c
@@ -1701,16 +1701,16 @@
1701 ** Issue a warning and give the user an opportunity to abandon out
1702 ** if a Unicode (UTF-16) byte-order-mark (BOM) or a \r\n line ending
1703 ** is seen in a text file.
1704 **
1705 ** Return 1 if the user pressed 'c'. In that case, the file will have
1706 ** been converted to UTF-8 (if it was UTF-16) with NL line-endings,
1707 ** and the original file will have been renamed to "<filename>-original".
1708 */
1709 static int commit_warning(
1710 Blob *pContent, /* The content of the file being committed. */
1711 int crnlOk, /* Non-zero if CR/NL warnings should be disabled. */
1712 int binOk, /* Non-zero if binary warnings should be disabled. */
1713 int encodingOk, /* Non-zero if encoding warnings should be disabled. */
1714 int noPrompt, /* 0 to always prompt, 1 for 'N', 2 for 'Y'. */
1715 const char *zFilename, /* The full name of the file being committed. */
1716 Blob *pReason /* Reason for warning, if any (non-fatal only). */
@@ -1761,39 +1761,39 @@
1761 zWarning = "binary data";
1762 zConvert = ""; /* We cannot convert binary files. */
1763 }
1764 zDisable = "\"binary-glob\" setting";
1765 }else if( fUnicode && fHasAnyCr ){
1766 if( crnlOk && encodingOk ){
1767 return 0; /* We don't want CR/NL and Unicode warnings for this file. */
1768 }
1769 if( fHasLoneCrOnly ){
1770 zWarning = "CR line endings and Unicode";
1771 }else if( fHasCrLfOnly ){
1772 zWarning = "CR/NL line endings and Unicode";
1773 }else{
1774 zWarning = "mixed line endings and Unicode";
1775 }
1776 zDisable = "\"crnl-glob\" and \"encoding-glob\" settings";
1777 }else if( fHasInvalidUtf8 ){
1778 if( encodingOk ){
1779 return 0; /* We don't want encoding warnings for this file. */
1780 }
1781 zWarning = "invalid UTF-8";
1782 zDisable = "\"encoding-glob\" setting";
1783 }else if( fHasAnyCr ){
1784 if( crnlOk ){
1785 return 0; /* We don't want CR/NL warnings for this file. */
1786 }
1787 if( fHasLoneCrOnly ){
1788 zWarning = "CR line endings";
1789 }else if( fHasCrLfOnly ){
1790 zWarning = "CR/NL line endings";
1791 }else{
1792 zWarning = "mixed line endings";
1793 }
1794 zDisable = "\"crnl-glob\" setting";
1795 }else{
1796 if( encodingOk ){
1797 return 0; /* We don't want encoding warnings for this file. */
1798 }
1799 zWarning = "Unicode";
@@ -1880,35 +1880,36 @@
1880 db_must_be_within_tree();
1881 db_prepare(&q,
1882 "SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile"
1883 " WHERE NOT deleted",
1884 g.zLocalRoot,
1885 glob_expr("pathname", noSettings ? 0 : db_get("crnl-glob","")),
 
1886 glob_expr("pathname", noSettings ? 0 : db_get("binary-glob","")),
1887 glob_expr("pathname", noSettings ? 0 : db_get("encoding-glob",""))
1888 );
1889 while( db_step(&q)==SQLITE_ROW ){
1890 const char *zFullname;
1891 const char *zName;
1892 Blob content;
1893 Blob reason;
1894 int crnlOk, binOk, encodingOk;
1895 int fileRc;
1896
1897 zFullname = db_column_text(&q, 0);
1898 zName = db_column_text(&q, 1);
1899 crnlOk = db_column_int(&q, 2);
1900 binOk = db_column_int(&q, 3);
1901 encodingOk = db_column_int(&q, 4);
1902 blob_zero(&content);
1903 if( file_wd_islink(zFullname) ){
1904 blob_read_link(&content, zFullname);
1905 }else{
1906 blob_read_from_file(&content, zFullname);
1907 }
1908 blob_zero(&reason);
1909 fileRc = commit_warning(&content, crnlOk, binOk, encodingOk, 2,
1910 zFullname, &reason);
1911 if( fileRc || verboseFlag ){
1912 fossil_print("%d\t%s\t%s\n", fileRc, zName, blob_str(&reason));
1913 }
1914 blob_reset(&reason);
@@ -1964,11 +1965,11 @@
1964 ** be older than its ancestor unless the --allow-older option appears.
1965 ** If any of files in the check-in appear to contain unresolved merge
1966 ** conflicts, the check-in will not be allowed unless the
1967 ** --allow-conflict option is present. In addition, the entire
1968 ** check-in process may be aborted if a file contains content that
1969 ** appears to be binary, Unicode text, or text with CR/NL line endings
1970 ** unless the interactive user chooses to proceed. If there is no
1971 ** interactive user or these warnings should be skipped for some other
1972 ** reason, the --no-warnings option may be used. A check-in is not
1973 ** allowed against a closed leaf.
1974 **
@@ -2338,24 +2339,24 @@
2338 */
2339 db_prepare(&q,
2340 "SELECT id, %Q || pathname, mrid, %s, %s, %s FROM vfile "
2341 "WHERE chnged==1 AND NOT deleted AND is_selected(id)",
2342 g.zLocalRoot,
2343 glob_expr("pathname", db_get("crnl-glob","")),
2344 glob_expr("pathname", db_get("binary-glob","")),
2345 glob_expr("pathname", db_get("encoding-glob",""))
2346 );
2347 while( db_step(&q)==SQLITE_ROW ){
2348 int id, rid;
2349 const char *zFullname;
2350 Blob content;
2351 int crnlOk, binOk, encodingOk;
2352
2353 id = db_column_int(&q, 0);
2354 zFullname = db_column_text(&q, 1);
2355 rid = db_column_int(&q, 2);
2356 crnlOk = db_column_int(&q, 3);
2357 binOk = db_column_int(&q, 4);
2358 encodingOk = db_column_int(&q, 5);
2359
2360 blob_zero(&content);
2361 if( file_wd_islink(zFullname) ){
@@ -2364,11 +2365,11 @@
2364 }else{
2365 blob_read_from_file(&content, zFullname);
2366 }
2367 /* Do not emit any warnings when they are disabled. */
2368 if( !noWarningFlag ){
2369 abortCommit |= commit_warning(&content, crnlOk, binOk,
2370 encodingOk, noPrompt,
2371 zFullname, 0);
2372 }
2373 if( contains_merge_marker(&content) ){
2374 Blob fname; /* Relative pathname of the file */
2375
--- src/checkin.c
+++ src/checkin.c
@@ -1701,16 +1701,16 @@
1701 ** Issue a warning and give the user an opportunity to abandon out
1702 ** if a Unicode (UTF-16) byte-order-mark (BOM) or a \r\n line ending
1703 ** is seen in a text file.
1704 **
1705 ** Return 1 if the user pressed 'c'. In that case, the file will have
1706 ** been converted to UTF-8 (if it was UTF-16) with LF line-endings,
1707 ** and the original file will have been renamed to "<filename>-original".
1708 */
1709 static int commit_warning(
1710 Blob *pContent, /* The content of the file being committed. */
1711 int crlfOk, /* Non-zero if CR/LF warnings should be disabled. */
1712 int binOk, /* Non-zero if binary warnings should be disabled. */
1713 int encodingOk, /* Non-zero if encoding warnings should be disabled. */
1714 int noPrompt, /* 0 to always prompt, 1 for 'N', 2 for 'Y'. */
1715 const char *zFilename, /* The full name of the file being committed. */
1716 Blob *pReason /* Reason for warning, if any (non-fatal only). */
@@ -1761,39 +1761,39 @@
1761 zWarning = "binary data";
1762 zConvert = ""; /* We cannot convert binary files. */
1763 }
1764 zDisable = "\"binary-glob\" setting";
1765 }else if( fUnicode && fHasAnyCr ){
1766 if( crlfOk && encodingOk ){
1767 return 0; /* We don't want CR/LF and Unicode warnings for this file. */
1768 }
1769 if( fHasLoneCrOnly ){
1770 zWarning = "CR line endings and Unicode";
1771 }else if( fHasCrLfOnly ){
1772 zWarning = "CR/LF line endings and Unicode";
1773 }else{
1774 zWarning = "mixed line endings and Unicode";
1775 }
1776 zDisable = "\"crlf-glob\" and \"encoding-glob\" settings";
1777 }else if( fHasInvalidUtf8 ){
1778 if( encodingOk ){
1779 return 0; /* We don't want encoding warnings for this file. */
1780 }
1781 zWarning = "invalid UTF-8";
1782 zDisable = "\"encoding-glob\" setting";
1783 }else if( fHasAnyCr ){
1784 if( crlfOk ){
1785 return 0; /* We don't want CR/LF warnings for this file. */
1786 }
1787 if( fHasLoneCrOnly ){
1788 zWarning = "CR line endings";
1789 }else if( fHasCrLfOnly ){
1790 zWarning = "CR/LF line endings";
1791 }else{
1792 zWarning = "mixed line endings";
1793 }
1794 zDisable = "\"crlf-glob\" setting";
1795 }else{
1796 if( encodingOk ){
1797 return 0; /* We don't want encoding warnings for this file. */
1798 }
1799 zWarning = "Unicode";
@@ -1880,35 +1880,36 @@
1880 db_must_be_within_tree();
1881 db_prepare(&q,
1882 "SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile"
1883 " WHERE NOT deleted",
1884 g.zLocalRoot,
1885 glob_expr("pathname", noSettings ? 0 : db_get("crlf-glob",
1886 db_get("crnl-glob",""))),
1887 glob_expr("pathname", noSettings ? 0 : db_get("binary-glob","")),
1888 glob_expr("pathname", noSettings ? 0 : db_get("encoding-glob",""))
1889 );
1890 while( db_step(&q)==SQLITE_ROW ){
1891 const char *zFullname;
1892 const char *zName;
1893 Blob content;
1894 Blob reason;
1895 int crlfOk, binOk, encodingOk;
1896 int fileRc;
1897
1898 zFullname = db_column_text(&q, 0);
1899 zName = db_column_text(&q, 1);
1900 crlfOk = db_column_int(&q, 2);
1901 binOk = db_column_int(&q, 3);
1902 encodingOk = db_column_int(&q, 4);
1903 blob_zero(&content);
1904 if( file_wd_islink(zFullname) ){
1905 blob_read_link(&content, zFullname);
1906 }else{
1907 blob_read_from_file(&content, zFullname);
1908 }
1909 blob_zero(&reason);
1910 fileRc = commit_warning(&content, crlfOk, binOk, encodingOk, 2,
1911 zFullname, &reason);
1912 if( fileRc || verboseFlag ){
1913 fossil_print("%d\t%s\t%s\n", fileRc, zName, blob_str(&reason));
1914 }
1915 blob_reset(&reason);
@@ -1964,11 +1965,11 @@
1965 ** be older than its ancestor unless the --allow-older option appears.
1966 ** If any of files in the check-in appear to contain unresolved merge
1967 ** conflicts, the check-in will not be allowed unless the
1968 ** --allow-conflict option is present. In addition, the entire
1969 ** check-in process may be aborted if a file contains content that
1970 ** appears to be binary, Unicode text, or text with CR/LF line endings
1971 ** unless the interactive user chooses to proceed. If there is no
1972 ** interactive user or these warnings should be skipped for some other
1973 ** reason, the --no-warnings option may be used. A check-in is not
1974 ** allowed against a closed leaf.
1975 **
@@ -2338,24 +2339,24 @@
2339 */
2340 db_prepare(&q,
2341 "SELECT id, %Q || pathname, mrid, %s, %s, %s FROM vfile "
2342 "WHERE chnged==1 AND NOT deleted AND is_selected(id)",
2343 g.zLocalRoot,
2344 glob_expr("pathname", db_get("crlf-glob",db_get("crnl-glob",""))),
2345 glob_expr("pathname", db_get("binary-glob","")),
2346 glob_expr("pathname", db_get("encoding-glob",""))
2347 );
2348 while( db_step(&q)==SQLITE_ROW ){
2349 int id, rid;
2350 const char *zFullname;
2351 Blob content;
2352 int crlfOk, binOk, encodingOk;
2353
2354 id = db_column_int(&q, 0);
2355 zFullname = db_column_text(&q, 1);
2356 rid = db_column_int(&q, 2);
2357 crlfOk = db_column_int(&q, 3);
2358 binOk = db_column_int(&q, 4);
2359 encodingOk = db_column_int(&q, 5);
2360
2361 blob_zero(&content);
2362 if( file_wd_islink(zFullname) ){
@@ -2364,11 +2365,11 @@
2365 }else{
2366 blob_read_from_file(&content, zFullname);
2367 }
2368 /* Do not emit any warnings when they are disabled. */
2369 if( !noWarningFlag ){
2370 abortCommit |= commit_warning(&content, crlfOk, binOk,
2371 encodingOk, noPrompt,
2372 zFullname, 0);
2373 }
2374 if( contains_merge_marker(&content) ){
2375 Blob fname; /* Relative pathname of the file */
2376
--- src/configure.c
+++ src/configure.c
@@ -121,10 +121,11 @@
121121
{ "manifest", CONFIGSET_PROJ },
122122
{ "binary-glob", CONFIGSET_PROJ },
123123
{ "clean-glob", CONFIGSET_PROJ },
124124
{ "ignore-glob", CONFIGSET_PROJ },
125125
{ "keep-glob", CONFIGSET_PROJ },
126
+ { "crlf-glob", CONFIGSET_PROJ },
126127
{ "crnl-glob", CONFIGSET_PROJ },
127128
{ "encoding-glob", CONFIGSET_PROJ },
128129
{ "empty-dirs", CONFIGSET_PROJ },
129130
{ "allow-symlinks", CONFIGSET_PROJ },
130131
{ "dotfiles", CONFIGSET_PROJ },
131132
--- src/configure.c
+++ src/configure.c
@@ -121,10 +121,11 @@
121 { "manifest", CONFIGSET_PROJ },
122 { "binary-glob", CONFIGSET_PROJ },
123 { "clean-glob", CONFIGSET_PROJ },
124 { "ignore-glob", CONFIGSET_PROJ },
125 { "keep-glob", CONFIGSET_PROJ },
 
126 { "crnl-glob", CONFIGSET_PROJ },
127 { "encoding-glob", CONFIGSET_PROJ },
128 { "empty-dirs", CONFIGSET_PROJ },
129 { "allow-symlinks", CONFIGSET_PROJ },
130 { "dotfiles", CONFIGSET_PROJ },
131
--- src/configure.c
+++ src/configure.c
@@ -121,10 +121,11 @@
121 { "manifest", CONFIGSET_PROJ },
122 { "binary-glob", CONFIGSET_PROJ },
123 { "clean-glob", CONFIGSET_PROJ },
124 { "ignore-glob", CONFIGSET_PROJ },
125 { "keep-glob", CONFIGSET_PROJ },
126 { "crlf-glob", CONFIGSET_PROJ },
127 { "crnl-glob", CONFIGSET_PROJ },
128 { "encoding-glob", CONFIGSET_PROJ },
129 { "empty-dirs", CONFIGSET_PROJ },
130 { "allow-symlinks", CONFIGSET_PROJ },
131 { "dotfiles", CONFIGSET_PROJ },
132
+5 -3
--- src/db.c
+++ src/db.c
@@ -2733,10 +2733,11 @@
27332733
#else
27342734
{ "case-sensitive", 0, 0, 0, 0, "on" },
27352735
#endif
27362736
{ "clean-glob", 0, 40, 1, 0, "" },
27372737
{ "clearsign", 0, 0, 0, 0, "off" },
2738
+ { "crlf-glob", 0, 40, 1, 0, "" },
27382739
{ "crnl-glob", 0, 40, 1, 0, "" },
27392740
{ "default-perms", 0, 16, 0, 0, "u" },
27402741
{ "diff-binary", 0, 0, 0, 0, "on" },
27412742
{ "diff-command", 0, 40, 0, 0, "" },
27422743
{ "dont-push", 0, 0, 0, 0, "off" },
@@ -2890,13 +2891,14 @@
28902891
**
28912892
** clearsign When enabled, fossil will attempt to sign all commits
28922893
** with gpg. When disabled (the default), commits will
28932894
** be unsigned. Default: off
28942895
**
2895
-** crnl-glob A comma or newline-separated list of GLOB patterns for
2896
-** (versionable) text files in which it is ok to have CR, CR+NL or mixed
2897
-** line endings. Set to "*" to disable CR+NL checking.
2896
+** crlf-glob A comma or newline-separated list of GLOB patterns for
2897
+** (versionable) text files in which it is ok to have CR, CR+LF or mixed
2898
+** line endings. Set to "*" to disable CR+LF checking.
2899
+** The crnl-glob setting is a compatibility alias.
28982900
**
28992901
** default-perms Permissions given automatically to new users. For more
29002902
** information on permissions see Users page in Server
29012903
** Administration of the HTTP UI. Default: u.
29022904
**
29032905
--- src/db.c
+++ src/db.c
@@ -2733,10 +2733,11 @@
2733 #else
2734 { "case-sensitive", 0, 0, 0, 0, "on" },
2735 #endif
2736 { "clean-glob", 0, 40, 1, 0, "" },
2737 { "clearsign", 0, 0, 0, 0, "off" },
 
2738 { "crnl-glob", 0, 40, 1, 0, "" },
2739 { "default-perms", 0, 16, 0, 0, "u" },
2740 { "diff-binary", 0, 0, 0, 0, "on" },
2741 { "diff-command", 0, 40, 0, 0, "" },
2742 { "dont-push", 0, 0, 0, 0, "off" },
@@ -2890,13 +2891,14 @@
2890 **
2891 ** clearsign When enabled, fossil will attempt to sign all commits
2892 ** with gpg. When disabled (the default), commits will
2893 ** be unsigned. Default: off
2894 **
2895 ** crnl-glob A comma or newline-separated list of GLOB patterns for
2896 ** (versionable) text files in which it is ok to have CR, CR+NL or mixed
2897 ** line endings. Set to "*" to disable CR+NL checking.
 
2898 **
2899 ** default-perms Permissions given automatically to new users. For more
2900 ** information on permissions see Users page in Server
2901 ** Administration of the HTTP UI. Default: u.
2902 **
2903
--- src/db.c
+++ src/db.c
@@ -2733,10 +2733,11 @@
2733 #else
2734 { "case-sensitive", 0, 0, 0, 0, "on" },
2735 #endif
2736 { "clean-glob", 0, 40, 1, 0, "" },
2737 { "clearsign", 0, 0, 0, 0, "off" },
2738 { "crlf-glob", 0, 40, 1, 0, "" },
2739 { "crnl-glob", 0, 40, 1, 0, "" },
2740 { "default-perms", 0, 16, 0, 0, "u" },
2741 { "diff-binary", 0, 0, 0, 0, "on" },
2742 { "diff-command", 0, 40, 0, 0, "" },
2743 { "dont-push", 0, 0, 0, 0, "off" },
@@ -2890,13 +2891,14 @@
2891 **
2892 ** clearsign When enabled, fossil will attempt to sign all commits
2893 ** with gpg. When disabled (the default), commits will
2894 ** be unsigned. Default: off
2895 **
2896 ** crlf-glob A comma or newline-separated list of GLOB patterns for
2897 ** (versionable) text files in which it is ok to have CR, CR+LF or mixed
2898 ** line endings. Set to "*" to disable CR+LF checking.
2899 ** The crnl-glob setting is a compatibility alias.
2900 **
2901 ** default-perms Permissions given automatically to new users. For more
2902 ** information on permissions see Users page in Server
2903 ** Administration of the HTTP UI. Default: u.
2904 **
2905
--- src/json_config.c
+++ src/json_config.c
@@ -77,10 +77,11 @@
7777
{ "manifest", CONFIGSET_PROJ },
7878
{ "binary-glob", CONFIGSET_PROJ },
7979
{ "clean-glob", CONFIGSET_PROJ },
8080
{ "ignore-glob", CONFIGSET_PROJ },
8181
{ "keep-glob", CONFIGSET_PROJ },
82
+{ "crlf-glob", CONFIGSET_PROJ },
8283
{ "crnl-glob", CONFIGSET_PROJ },
8384
{ "encoding-glob", CONFIGSET_PROJ },
8485
{ "empty-dirs", CONFIGSET_PROJ },
8586
{ "allow-symlinks", CONFIGSET_PROJ },
8687
{ "dotfiles", CONFIGSET_PROJ },
8788
--- src/json_config.c
+++ src/json_config.c
@@ -77,10 +77,11 @@
77 { "manifest", CONFIGSET_PROJ },
78 { "binary-glob", CONFIGSET_PROJ },
79 { "clean-glob", CONFIGSET_PROJ },
80 { "ignore-glob", CONFIGSET_PROJ },
81 { "keep-glob", CONFIGSET_PROJ },
 
82 { "crnl-glob", CONFIGSET_PROJ },
83 { "encoding-glob", CONFIGSET_PROJ },
84 { "empty-dirs", CONFIGSET_PROJ },
85 { "allow-symlinks", CONFIGSET_PROJ },
86 { "dotfiles", CONFIGSET_PROJ },
87
--- src/json_config.c
+++ src/json_config.c
@@ -77,10 +77,11 @@
77 { "manifest", CONFIGSET_PROJ },
78 { "binary-glob", CONFIGSET_PROJ },
79 { "clean-glob", CONFIGSET_PROJ },
80 { "ignore-glob", CONFIGSET_PROJ },
81 { "keep-glob", CONFIGSET_PROJ },
82 { "crlf-glob", CONFIGSET_PROJ },
83 { "crnl-glob", CONFIGSET_PROJ },
84 { "encoding-glob", CONFIGSET_PROJ },
85 { "empty-dirs", CONFIGSET_PROJ },
86 { "allow-symlinks", CONFIGSET_PROJ },
87 { "dotfiles", CONFIGSET_PROJ },
88
+1 -1
--- src/printf.c
+++ src/printf.c
@@ -1139,11 +1139,11 @@
11391139
}
11401140
free(z);
11411141
}
11421142
11431143
/*
1144
-** Turn off any NL to CRNL translation on the stream given as an
1144
+** Turn off any LF to CRLF translation on the stream given as an
11451145
** argument. This is a no-op on unix but is necessary on windows.
11461146
*/
11471147
void fossil_binary_mode(FILE *p){
11481148
#if defined(_WIN32)
11491149
_setmode(_fileno(p), _O_BINARY);
11501150
--- src/printf.c
+++ src/printf.c
@@ -1139,11 +1139,11 @@
1139 }
1140 free(z);
1141 }
1142
1143 /*
1144 ** Turn off any NL to CRNL translation on the stream given as an
1145 ** argument. This is a no-op on unix but is necessary on windows.
1146 */
1147 void fossil_binary_mode(FILE *p){
1148 #if defined(_WIN32)
1149 _setmode(_fileno(p), _O_BINARY);
1150
--- src/printf.c
+++ src/printf.c
@@ -1139,11 +1139,11 @@
1139 }
1140 free(z);
1141 }
1142
1143 /*
1144 ** Turn off any LF to CRLF translation on the stream given as an
1145 ** argument. This is a no-op on unix but is necessary on windows.
1146 */
1147 void fossil_binary_mode(FILE *p){
1148 #if defined(_WIN32)
1149 _setmode(_fileno(p), _O_BINARY);
1150
+2 -2
--- src/report.c
+++ src/report.c
@@ -129,12 +129,12 @@
129129
return "";
130130
}
131131
132132
/*
133133
** Remove blank lines from the beginning of a string and
134
-** all whitespace from the end. Removes whitespace preceding a NL,
135
-** which also converts any CRNL sequence into a single NL.
134
+** all whitespace from the end. Removes whitespace preceding a LF,
135
+** which also converts any CRLF sequence into a single LF.
136136
*/
137137
char *remove_blank_lines(const char *zOrig){
138138
int i, j, n;
139139
char *z;
140140
for(i=j=0; fossil_isspace(zOrig[i]); i++){ if( zOrig[i]=='\n' ) j = i+1; }
141141
--- src/report.c
+++ src/report.c
@@ -129,12 +129,12 @@
129 return "";
130 }
131
132 /*
133 ** Remove blank lines from the beginning of a string and
134 ** all whitespace from the end. Removes whitespace preceding a NL,
135 ** which also converts any CRNL sequence into a single NL.
136 */
137 char *remove_blank_lines(const char *zOrig){
138 int i, j, n;
139 char *z;
140 for(i=j=0; fossil_isspace(zOrig[i]); i++){ if( zOrig[i]=='\n' ) j = i+1; }
141
--- src/report.c
+++ src/report.c
@@ -129,12 +129,12 @@
129 return "";
130 }
131
132 /*
133 ** Remove blank lines from the beginning of a string and
134 ** all whitespace from the end. Removes whitespace preceding a LF,
135 ** which also converts any CRLF sequence into a single LF.
136 */
137 char *remove_blank_lines(const char *zOrig){
138 int i, j, n;
139 char *z;
140 for(i=j=0; fossil_isspace(zOrig[i]); i++){ if( zOrig[i]=='\n' ) j = i+1; }
141
--- www/settings.wiki
+++ www/settings.wiki
@@ -33,15 +33,15 @@
3333
use Fossil, how you communicate with the server, or options for hosting
3434
a repository on the web.
3535
3636
However, for historical reasons, some settings affect how you work with
3737
versioned files. These are <tt>allow-symlinks</tt>,
38
-<tt>binary-glob</tt>, <tt>crnl-glob</tt>, <tt>empty-dirs</tt>,
39
-<tt>encoding-glob</tt>, <tt>ignore-glob</tt>, <tt>keep-glob</tt> and
40
-<tt>manifest</tt>. The most important is <tt>ignore-glob</tt> which
41
-specifies which files should be ignored when looking for unmanaged files
42
-with the <tt>extras</tt> command.
38
+<tt>binary-glob</tt>, <tt>crlf-glob</tt>, <tt>crnl-glob</tt>,
39
+<tt>empty-dirs</tt>, <tt>encoding-glob</tt>, <tt>ignore-glob</tt>,
40
+<tt>keep-glob</tt> and <tt>manifest</tt>. The most important is
41
+<tt>ignore-glob</tt> which specifies which files should be ignored when
42
+looking for unmanaged files with the <tt>extras</tt> command.
4343
4444
Because these options can change over time, and the inconvenience of
4545
replicating changes, these settings are "versionable". As well as being
4646
able to be set using the <tt>settings</tt> command or the web interface,
4747
you can create versioned files in the <tt>.fossil-settings</tt>
4848
--- www/settings.wiki
+++ www/settings.wiki
@@ -33,15 +33,15 @@
33 use Fossil, how you communicate with the server, or options for hosting
34 a repository on the web.
35
36 However, for historical reasons, some settings affect how you work with
37 versioned files. These are <tt>allow-symlinks</tt>,
38 <tt>binary-glob</tt>, <tt>crnl-glob</tt>, <tt>empty-dirs</tt>,
39 <tt>encoding-glob</tt>, <tt>ignore-glob</tt>, <tt>keep-glob</tt> and
40 <tt>manifest</tt>. The most important is <tt>ignore-glob</tt> which
41 specifies which files should be ignored when looking for unmanaged files
42 with the <tt>extras</tt> command.
43
44 Because these options can change over time, and the inconvenience of
45 replicating changes, these settings are "versionable". As well as being
46 able to be set using the <tt>settings</tt> command or the web interface,
47 you can create versioned files in the <tt>.fossil-settings</tt>
48
--- www/settings.wiki
+++ www/settings.wiki
@@ -33,15 +33,15 @@
33 use Fossil, how you communicate with the server, or options for hosting
34 a repository on the web.
35
36 However, for historical reasons, some settings affect how you work with
37 versioned files. These are <tt>allow-symlinks</tt>,
38 <tt>binary-glob</tt>, <tt>crlf-glob</tt>, <tt>crnl-glob</tt>,
39 <tt>empty-dirs</tt>, <tt>encoding-glob</tt>, <tt>ignore-glob</tt>,
40 <tt>keep-glob</tt> and <tt>manifest</tt>. The most important is
41 <tt>ignore-glob</tt> which specifies which files should be ignored when
42 looking for unmanaged files with the <tt>extras</tt> command.
43
44 Because these options can change over time, and the inconvenience of
45 replicating changes, these settings are "versionable". As well as being
46 able to be set using the <tt>settings</tt> command or the web interface,
47 you can create versioned files in the <tt>.fossil-settings</tt>
48
--- www/sync.wiki
+++ www/sync.wiki
@@ -529,10 +529,11 @@
529529
<li> binary-glob
530530
<li> clean-glob
531531
<ul></td><td valign="top"><ul>
532532
<li> ignore-glob
533533
<li> keep-glob
534
+<li> crlf-glob
534535
<li> crnl-glob
535536
<li> encoding-glob
536537
<li> empty-dirs
537538
<li> allow-symlinks
538539
<li> dotfiles
539540
--- www/sync.wiki
+++ www/sync.wiki
@@ -529,10 +529,11 @@
529 <li> binary-glob
530 <li> clean-glob
531 <ul></td><td valign="top"><ul>
532 <li> ignore-glob
533 <li> keep-glob
 
534 <li> crnl-glob
535 <li> encoding-glob
536 <li> empty-dirs
537 <li> allow-symlinks
538 <li> dotfiles
539
--- www/sync.wiki
+++ www/sync.wiki
@@ -529,10 +529,11 @@
529 <li> binary-glob
530 <li> clean-glob
531 <ul></td><td valign="top"><ul>
532 <li> ignore-glob
533 <li> keep-glob
534 <li> crlf-glob
535 <li> crnl-glob
536 <li> encoding-glob
537 <li> empty-dirs
538 <li> allow-symlinks
539 <li> dotfiles
540

Keyboard Shortcuts

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