Fossil SCM

Rename crnl-glob to crlf-glob, retaining support for crnl-glob as a compatibility alias. Change terminology from NL to LF throughout, excepting cases where NL means newline and not line feed. Also don't change linenoise.c which is third-party code.

andygoth 2016-05-23 15:34 trunk
Commit 2bc3cfebe61aeaa5968d3d6ed01c49fb501db420
+15 -15
--- src/checkin.c
+++ src/checkin.c
@@ -1462,16 +1462,16 @@
14621462
** Issue a warning and give the user an opportunity to abandon out
14631463
** if a Unicode (UTF-16) byte-order-mark (BOM) or a \r\n line ending
14641464
** is seen in a text file.
14651465
**
14661466
** Return 1 if the user pressed 'c'. In that case, the file will have
1467
-** been converted to UTF-8 (if it was UTF-16) with NL line-endings,
1467
+** been converted to UTF-8 (if it was UTF-16) with LF line-endings,
14681468
** and the original file will have been renamed to "<filename>-original".
14691469
*/
14701470
static int commit_warning(
14711471
Blob *p, /* The content of the file being committed. */
1472
- int crnlOk, /* Non-zero if CR/NL warnings should be disabled. */
1472
+ int crlfOk, /* Non-zero if CR/LF warnings should be disabled. */
14731473
int binOk, /* Non-zero if binary warnings should be disabled. */
14741474
int encodingOk, /* Non-zero if encoding warnings should be disabled. */
14751475
const char *zFilename /* The full name of the file being committed. */
14761476
){
14771477
int bReverse; /* UTF-16 byte order is reversed? */
@@ -1520,39 +1520,39 @@
15201520
zWarning = "binary data";
15211521
zConvert = ""; /* We cannot convert binary files. */
15221522
}
15231523
zDisable = "\"binary-glob\" setting";
15241524
}else if( fUnicode && fHasAnyCr ){
1525
- if( crnlOk && encodingOk ){
1526
- return 0; /* We don't want CR/NL and Unicode warnings for this file. */
1525
+ if( crlfOk && encodingOk ){
1526
+ return 0; /* We don't want CR/LF and Unicode warnings for this file. */
15271527
}
15281528
if( fHasLoneCrOnly ){
15291529
zWarning = "CR line endings and Unicode";
15301530
}else if( fHasCrLfOnly ){
1531
- zWarning = "CR/NL line endings and Unicode";
1531
+ zWarning = "CR/LF line endings and Unicode";
15321532
}else{
15331533
zWarning = "mixed line endings and Unicode";
15341534
}
1535
- zDisable = "\"crnl-glob\" and \"encoding-glob\" settings";
1535
+ zDisable = "\"crlf-glob\" and \"encoding-glob\" settings";
15361536
}else if( fHasInvalidUtf8 ){
15371537
if( encodingOk ){
15381538
return 0; /* We don't want encoding warnings for this file. */
15391539
}
15401540
zWarning = "invalid UTF-8";
15411541
zDisable = "\"encoding-glob\" setting";
15421542
}else if( fHasAnyCr ){
1543
- if( crnlOk ){
1544
- return 0; /* We don't want CR/NL warnings for this file. */
1543
+ if( crlfOk ){
1544
+ return 0; /* We don't want CR/LF warnings for this file. */
15451545
}
15461546
if( fHasLoneCrOnly ){
15471547
zWarning = "CR line endings";
15481548
}else if( fHasCrLfOnly ){
1549
- zWarning = "CR/NL line endings";
1549
+ zWarning = "CR/LF line endings";
15501550
}else{
15511551
zWarning = "mixed line endings";
15521552
}
1553
- zDisable = "\"crnl-glob\" setting";
1553
+ zDisable = "\"crlf-glob\" setting";
15541554
}else{
15551555
if( encodingOk ){
15561556
return 0; /* We don't want encoding warnings for this file. */
15571557
}
15581558
zWarning = "Unicode";
@@ -1649,11 +1649,11 @@
16491649
** be older than its ancestor unless the --allow-older option appears.
16501650
** If any of files in the check-in appear to contain unresolved merge
16511651
** conflicts, the check-in will not be allowed unless the
16521652
** --allow-conflict option is present. In addition, the entire
16531653
** check-in process may be aborted if a file contains content that
1654
-** appears to be binary, Unicode text, or text with CR/NL line endings
1654
+** appears to be binary, Unicode text, or text with CR/LF line endings
16551655
** unless the interactive user chooses to proceed. If there is no
16561656
** interactive user or these warnings should be skipped for some other
16571657
** reason, the --no-warnings option may be used. A check-in is not
16581658
** allowed against a closed leaf.
16591659
**
@@ -1994,24 +1994,24 @@
19941994
*/
19951995
db_prepare(&q,
19961996
"SELECT id, %Q || pathname, mrid, %s, %s, %s FROM vfile "
19971997
"WHERE chnged==1 AND NOT deleted AND is_selected(id)",
19981998
g.zLocalRoot,
1999
- glob_expr("pathname", db_get("crnl-glob","")),
1999
+ glob_expr("pathname", db_get("crlf-glob",db_get("crnl-glob",""))),
20002000
glob_expr("pathname", db_get("binary-glob","")),
20012001
glob_expr("pathname", db_get("encoding-glob",""))
20022002
);
20032003
while( db_step(&q)==SQLITE_ROW ){
20042004
int id, rid;
20052005
const char *zFullname;
20062006
Blob content;
2007
- int crnlOk, binOk, encodingOk;
2007
+ int crlfOk, binOk, encodingOk;
20082008
20092009
id = db_column_int(&q, 0);
20102010
zFullname = db_column_text(&q, 1);
20112011
rid = db_column_int(&q, 2);
2012
- crnlOk = db_column_int(&q, 3);
2012
+ crlfOk = db_column_int(&q, 3);
20132013
binOk = db_column_int(&q, 4);
20142014
encodingOk = db_column_int(&q, 5);
20152015
20162016
blob_zero(&content);
20172017
if( file_wd_islink(zFullname) ){
@@ -2020,11 +2020,11 @@
20202020
}else{
20212021
blob_read_from_file(&content, zFullname);
20222022
}
20232023
/* Do not emit any warnings when they are disabled. */
20242024
if( !noWarningFlag ){
2025
- abortCommit |= commit_warning(&content, crnlOk, binOk,
2025
+ abortCommit |= commit_warning(&content, crlfOk, binOk,
20262026
encodingOk, zFullname);
20272027
}
20282028
if( contains_merge_marker(&content) ){
20292029
Blob fname; /* Relative pathname of the file */
20302030
20312031
--- src/checkin.c
+++ src/checkin.c
@@ -1462,16 +1462,16 @@
1462 ** Issue a warning and give the user an opportunity to abandon out
1463 ** if a Unicode (UTF-16) byte-order-mark (BOM) or a \r\n line ending
1464 ** is seen in a text file.
1465 **
1466 ** Return 1 if the user pressed 'c'. In that case, the file will have
1467 ** been converted to UTF-8 (if it was UTF-16) with NL line-endings,
1468 ** and the original file will have been renamed to "<filename>-original".
1469 */
1470 static int commit_warning(
1471 Blob *p, /* The content of the file being committed. */
1472 int crnlOk, /* Non-zero if CR/NL warnings should be disabled. */
1473 int binOk, /* Non-zero if binary warnings should be disabled. */
1474 int encodingOk, /* Non-zero if encoding warnings should be disabled. */
1475 const char *zFilename /* The full name of the file being committed. */
1476 ){
1477 int bReverse; /* UTF-16 byte order is reversed? */
@@ -1520,39 +1520,39 @@
1520 zWarning = "binary data";
1521 zConvert = ""; /* We cannot convert binary files. */
1522 }
1523 zDisable = "\"binary-glob\" setting";
1524 }else if( fUnicode && fHasAnyCr ){
1525 if( crnlOk && encodingOk ){
1526 return 0; /* We don't want CR/NL and Unicode warnings for this file. */
1527 }
1528 if( fHasLoneCrOnly ){
1529 zWarning = "CR line endings and Unicode";
1530 }else if( fHasCrLfOnly ){
1531 zWarning = "CR/NL line endings and Unicode";
1532 }else{
1533 zWarning = "mixed line endings and Unicode";
1534 }
1535 zDisable = "\"crnl-glob\" and \"encoding-glob\" settings";
1536 }else if( fHasInvalidUtf8 ){
1537 if( encodingOk ){
1538 return 0; /* We don't want encoding warnings for this file. */
1539 }
1540 zWarning = "invalid UTF-8";
1541 zDisable = "\"encoding-glob\" setting";
1542 }else if( fHasAnyCr ){
1543 if( crnlOk ){
1544 return 0; /* We don't want CR/NL warnings for this file. */
1545 }
1546 if( fHasLoneCrOnly ){
1547 zWarning = "CR line endings";
1548 }else if( fHasCrLfOnly ){
1549 zWarning = "CR/NL line endings";
1550 }else{
1551 zWarning = "mixed line endings";
1552 }
1553 zDisable = "\"crnl-glob\" setting";
1554 }else{
1555 if( encodingOk ){
1556 return 0; /* We don't want encoding warnings for this file. */
1557 }
1558 zWarning = "Unicode";
@@ -1649,11 +1649,11 @@
1649 ** be older than its ancestor unless the --allow-older option appears.
1650 ** If any of files in the check-in appear to contain unresolved merge
1651 ** conflicts, the check-in will not be allowed unless the
1652 ** --allow-conflict option is present. In addition, the entire
1653 ** check-in process may be aborted if a file contains content that
1654 ** appears to be binary, Unicode text, or text with CR/NL line endings
1655 ** unless the interactive user chooses to proceed. If there is no
1656 ** interactive user or these warnings should be skipped for some other
1657 ** reason, the --no-warnings option may be used. A check-in is not
1658 ** allowed against a closed leaf.
1659 **
@@ -1994,24 +1994,24 @@
1994 */
1995 db_prepare(&q,
1996 "SELECT id, %Q || pathname, mrid, %s, %s, %s FROM vfile "
1997 "WHERE chnged==1 AND NOT deleted AND is_selected(id)",
1998 g.zLocalRoot,
1999 glob_expr("pathname", db_get("crnl-glob","")),
2000 glob_expr("pathname", db_get("binary-glob","")),
2001 glob_expr("pathname", db_get("encoding-glob",""))
2002 );
2003 while( db_step(&q)==SQLITE_ROW ){
2004 int id, rid;
2005 const char *zFullname;
2006 Blob content;
2007 int crnlOk, binOk, encodingOk;
2008
2009 id = db_column_int(&q, 0);
2010 zFullname = db_column_text(&q, 1);
2011 rid = db_column_int(&q, 2);
2012 crnlOk = db_column_int(&q, 3);
2013 binOk = db_column_int(&q, 4);
2014 encodingOk = db_column_int(&q, 5);
2015
2016 blob_zero(&content);
2017 if( file_wd_islink(zFullname) ){
@@ -2020,11 +2020,11 @@
2020 }else{
2021 blob_read_from_file(&content, zFullname);
2022 }
2023 /* Do not emit any warnings when they are disabled. */
2024 if( !noWarningFlag ){
2025 abortCommit |= commit_warning(&content, crnlOk, binOk,
2026 encodingOk, zFullname);
2027 }
2028 if( contains_merge_marker(&content) ){
2029 Blob fname; /* Relative pathname of the file */
2030
2031
--- src/checkin.c
+++ src/checkin.c
@@ -1462,16 +1462,16 @@
1462 ** Issue a warning and give the user an opportunity to abandon out
1463 ** if a Unicode (UTF-16) byte-order-mark (BOM) or a \r\n line ending
1464 ** is seen in a text file.
1465 **
1466 ** Return 1 if the user pressed 'c'. In that case, the file will have
1467 ** been converted to UTF-8 (if it was UTF-16) with LF line-endings,
1468 ** and the original file will have been renamed to "<filename>-original".
1469 */
1470 static int commit_warning(
1471 Blob *p, /* The content of the file being committed. */
1472 int crlfOk, /* Non-zero if CR/LF warnings should be disabled. */
1473 int binOk, /* Non-zero if binary warnings should be disabled. */
1474 int encodingOk, /* Non-zero if encoding warnings should be disabled. */
1475 const char *zFilename /* The full name of the file being committed. */
1476 ){
1477 int bReverse; /* UTF-16 byte order is reversed? */
@@ -1520,39 +1520,39 @@
1520 zWarning = "binary data";
1521 zConvert = ""; /* We cannot convert binary files. */
1522 }
1523 zDisable = "\"binary-glob\" setting";
1524 }else if( fUnicode && fHasAnyCr ){
1525 if( crlfOk && encodingOk ){
1526 return 0; /* We don't want CR/LF and Unicode warnings for this file. */
1527 }
1528 if( fHasLoneCrOnly ){
1529 zWarning = "CR line endings and Unicode";
1530 }else if( fHasCrLfOnly ){
1531 zWarning = "CR/LF line endings and Unicode";
1532 }else{
1533 zWarning = "mixed line endings and Unicode";
1534 }
1535 zDisable = "\"crlf-glob\" and \"encoding-glob\" settings";
1536 }else if( fHasInvalidUtf8 ){
1537 if( encodingOk ){
1538 return 0; /* We don't want encoding warnings for this file. */
1539 }
1540 zWarning = "invalid UTF-8";
1541 zDisable = "\"encoding-glob\" setting";
1542 }else if( fHasAnyCr ){
1543 if( crlfOk ){
1544 return 0; /* We don't want CR/LF warnings for this file. */
1545 }
1546 if( fHasLoneCrOnly ){
1547 zWarning = "CR line endings";
1548 }else if( fHasCrLfOnly ){
1549 zWarning = "CR/LF line endings";
1550 }else{
1551 zWarning = "mixed line endings";
1552 }
1553 zDisable = "\"crlf-glob\" setting";
1554 }else{
1555 if( encodingOk ){
1556 return 0; /* We don't want encoding warnings for this file. */
1557 }
1558 zWarning = "Unicode";
@@ -1649,11 +1649,11 @@
1649 ** be older than its ancestor unless the --allow-older option appears.
1650 ** If any of files in the check-in appear to contain unresolved merge
1651 ** conflicts, the check-in will not be allowed unless the
1652 ** --allow-conflict option is present. In addition, the entire
1653 ** check-in process may be aborted if a file contains content that
1654 ** appears to be binary, Unicode text, or text with CR/LF line endings
1655 ** unless the interactive user chooses to proceed. If there is no
1656 ** interactive user or these warnings should be skipped for some other
1657 ** reason, the --no-warnings option may be used. A check-in is not
1658 ** allowed against a closed leaf.
1659 **
@@ -1994,24 +1994,24 @@
1994 */
1995 db_prepare(&q,
1996 "SELECT id, %Q || pathname, mrid, %s, %s, %s FROM vfile "
1997 "WHERE chnged==1 AND NOT deleted AND is_selected(id)",
1998 g.zLocalRoot,
1999 glob_expr("pathname", db_get("crlf-glob",db_get("crnl-glob",""))),
2000 glob_expr("pathname", db_get("binary-glob","")),
2001 glob_expr("pathname", db_get("encoding-glob",""))
2002 );
2003 while( db_step(&q)==SQLITE_ROW ){
2004 int id, rid;
2005 const char *zFullname;
2006 Blob content;
2007 int crlfOk, binOk, encodingOk;
2008
2009 id = db_column_int(&q, 0);
2010 zFullname = db_column_text(&q, 1);
2011 rid = db_column_int(&q, 2);
2012 crlfOk = db_column_int(&q, 3);
2013 binOk = db_column_int(&q, 4);
2014 encodingOk = db_column_int(&q, 5);
2015
2016 blob_zero(&content);
2017 if( file_wd_islink(zFullname) ){
@@ -2020,11 +2020,11 @@
2020 }else{
2021 blob_read_from_file(&content, zFullname);
2022 }
2023 /* Do not emit any warnings when they are disabled. */
2024 if( !noWarningFlag ){
2025 abortCommit |= commit_warning(&content, crlfOk, binOk,
2026 encodingOk, zFullname);
2027 }
2028 if( contains_merge_marker(&content) ){
2029 Blob fname; /* Relative pathname of the file */
2030
2031
--- 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
@@ -2528,10 +2528,11 @@
25282528
#else
25292529
{ "case-sensitive", 0, 0, 0, 0, "on" },
25302530
#endif
25312531
{ "clean-glob", 0, 40, 1, 0, "" },
25322532
{ "clearsign", 0, 0, 0, 0, "off" },
2533
+ { "crlf-glob", 0, 40, 1, 0, "" },
25332534
{ "crnl-glob", 0, 40, 1, 0, "" },
25342535
{ "default-perms", 0, 16, 0, 0, "u" },
25352536
{ "diff-binary", 0, 0, 0, 0, "on" },
25362537
{ "diff-command", 0, 40, 0, 0, "" },
25372538
{ "dont-push", 0, 0, 0, 0, "off" },
@@ -2684,13 +2685,14 @@
26842685
**
26852686
** clearsign When enabled, fossil will attempt to sign all commits
26862687
** with gpg. When disabled (the default), commits will
26872688
** be unsigned. Default: off
26882689
**
2689
-** crnl-glob A comma or newline-separated list of GLOB patterns for
2690
-** (versionable) text files in which it is ok to have CR, CR+NL or mixed
2691
-** line endings. Set to "*" to disable CR+NL checking.
2690
+** crlf-glob A comma or newline-separated list of GLOB patterns for
2691
+** (versionable) text files in which it is ok to have CR, CR+LF or mixed
2692
+** line endings. Set to "*" to disable CR+LF checking.
2693
+** The crnl-glob setting is a compatibility alias.
26922694
**
26932695
** default-perms Permissions given automatically to new users. For more
26942696
** information on permissions see Users page in Server
26952697
** Administration of the HTTP UI. Default: u.
26962698
**
26972699
--- src/db.c
+++ src/db.c
@@ -2528,10 +2528,11 @@
2528 #else
2529 { "case-sensitive", 0, 0, 0, 0, "on" },
2530 #endif
2531 { "clean-glob", 0, 40, 1, 0, "" },
2532 { "clearsign", 0, 0, 0, 0, "off" },
 
2533 { "crnl-glob", 0, 40, 1, 0, "" },
2534 { "default-perms", 0, 16, 0, 0, "u" },
2535 { "diff-binary", 0, 0, 0, 0, "on" },
2536 { "diff-command", 0, 40, 0, 0, "" },
2537 { "dont-push", 0, 0, 0, 0, "off" },
@@ -2684,13 +2685,14 @@
2684 **
2685 ** clearsign When enabled, fossil will attempt to sign all commits
2686 ** with gpg. When disabled (the default), commits will
2687 ** be unsigned. Default: off
2688 **
2689 ** crnl-glob A comma or newline-separated list of GLOB patterns for
2690 ** (versionable) text files in which it is ok to have CR, CR+NL or mixed
2691 ** line endings. Set to "*" to disable CR+NL checking.
 
2692 **
2693 ** default-perms Permissions given automatically to new users. For more
2694 ** information on permissions see Users page in Server
2695 ** Administration of the HTTP UI. Default: u.
2696 **
2697
--- src/db.c
+++ src/db.c
@@ -2528,10 +2528,11 @@
2528 #else
2529 { "case-sensitive", 0, 0, 0, 0, "on" },
2530 #endif
2531 { "clean-glob", 0, 40, 1, 0, "" },
2532 { "clearsign", 0, 0, 0, 0, "off" },
2533 { "crlf-glob", 0, 40, 1, 0, "" },
2534 { "crnl-glob", 0, 40, 1, 0, "" },
2535 { "default-perms", 0, 16, 0, 0, "u" },
2536 { "diff-binary", 0, 0, 0, 0, "on" },
2537 { "diff-command", 0, 40, 0, 0, "" },
2538 { "dont-push", 0, 0, 0, 0, "off" },
@@ -2684,13 +2685,14 @@
2685 **
2686 ** clearsign When enabled, fossil will attempt to sign all commits
2687 ** with gpg. When disabled (the default), commits will
2688 ** be unsigned. Default: off
2689 **
2690 ** crlf-glob A comma or newline-separated list of GLOB patterns for
2691 ** (versionable) text files in which it is ok to have CR, CR+LF or mixed
2692 ** line endings. Set to "*" to disable CR+LF checking.
2693 ** The crnl-glob setting is a compatibility alias.
2694 **
2695 ** default-perms Permissions given automatically to new users. For more
2696 ** information on permissions see Users page in Server
2697 ** Administration of the HTTP UI. Default: u.
2698 **
2699
--- 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
@@ -1130,11 +1130,11 @@
11301130
}
11311131
free(z);
11321132
}
11331133
11341134
/*
1135
-** Turn off any NL to CRNL translation on the stream given as an
1135
+** Turn off any LF to CRLF translation on the stream given as an
11361136
** argument. This is a no-op on unix but is necessary on windows.
11371137
*/
11381138
void fossil_binary_mode(FILE *p){
11391139
#if defined(_WIN32)
11401140
_setmode(_fileno(p), _O_BINARY);
11411141
--- src/printf.c
+++ src/printf.c
@@ -1130,11 +1130,11 @@
1130 }
1131 free(z);
1132 }
1133
1134 /*
1135 ** Turn off any NL to CRNL translation on the stream given as an
1136 ** argument. This is a no-op on unix but is necessary on windows.
1137 */
1138 void fossil_binary_mode(FILE *p){
1139 #if defined(_WIN32)
1140 _setmode(_fileno(p), _O_BINARY);
1141
--- src/printf.c
+++ src/printf.c
@@ -1130,11 +1130,11 @@
1130 }
1131 free(z);
1132 }
1133
1134 /*
1135 ** Turn off any LF to CRLF translation on the stream given as an
1136 ** argument. This is a no-op on unix but is necessary on windows.
1137 */
1138 void fossil_binary_mode(FILE *p){
1139 #if defined(_WIN32)
1140 _setmode(_fileno(p), _O_BINARY);
1141
+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
@@ -414,10 +414,11 @@
414414
<li> binary-glob
415415
<li> clean-glob
416416
<ul></td><td valign="top"><ul>
417417
<li> ignore-glob
418418
<li> keep-glob
419
+<li> crlf-glob
419420
<li> crnl-glob
420421
<li> encoding-glob
421422
<li> empty-dirs
422423
<li> allow-symlinks
423424
<li> dotfiles
424425
--- www/sync.wiki
+++ www/sync.wiki
@@ -414,10 +414,11 @@
414 <li> binary-glob
415 <li> clean-glob
416 <ul></td><td valign="top"><ul>
417 <li> ignore-glob
418 <li> keep-glob
 
419 <li> crnl-glob
420 <li> encoding-glob
421 <li> empty-dirs
422 <li> allow-symlinks
423 <li> dotfiles
424
--- www/sync.wiki
+++ www/sync.wiki
@@ -414,10 +414,11 @@
414 <li> binary-glob
415 <li> clean-glob
416 <ul></td><td valign="top"><ul>
417 <li> ignore-glob
418 <li> keep-glob
419 <li> crlf-glob
420 <li> crnl-glob
421 <li> encoding-glob
422 <li> empty-dirs
423 <li> allow-symlinks
424 <li> dotfiles
425

Keyboard Shortcuts

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