Check-in [3ba0763bfc]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Honor the show-only-if-changed flag for boolean settings on the /setup_settings page in addition to in the "settings" command.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3ba0763bfcbffba484e27446be63dfe618636f335287f99b6b48ee117d2deda5
User & Date: drh 2025-03-16 22:44:20.960
Context
2025-03-16
22:49
Improved help for the "test-which" command, explaining why it is retained even though we now have a "which" command without the "test-" prefix. check-in: b3f270ffd6 user: drh tags: trunk
22:44
Honor the show-only-if-changed flag for boolean settings on the /setup_settings page in addition to in the "settings" command. check-in: 3ba0763bfc user: drh tags: trunk
22:40
New setting "verify-comments" defaults to on, but can be turned off to prevent checkin comment sanity checking. This setting does not appear in the "fossil settings" list unless it differs from the default, or unless the "--extra" argument is added to "fossil settings". check-in: 8f4aedcf84 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/setup.c.
1156
1157
1158
1159
1160
1161
1162




1163
1164
1165
1166
1167
1168
1169
  @ <form action="%R/setup_settings" method="post"><div>
  @ <table border="0"><tr><td valign="top">
  login_insert_csrf_secret();
  for(i=0, pSet=aSetting; i<nSetting; i++, pSet++){
    if( pSet->width==0 ){
      int hasVersionableValue = pSet->versionable &&
          (db_get_versioned(pSet->name, NULL, NULL)!=0);




      onoff_attribute("", pSet->name,
                      pSet->var!=0 ? pSet->var : pSet->name /*works-like:"x"*/,
                      is_truth(pSet->def), hasVersionableValue);
      @ <a href='%R/help?cmd=%s(pSet->name)'>%h(pSet->name)</a>
      if( pSet->versionable ){
        @  (v)<br>
      } else {







>
>
>
>







1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
  @ <form action="%R/setup_settings" method="post"><div>
  @ <table border="0"><tr><td valign="top">
  login_insert_csrf_secret();
  for(i=0, pSet=aSetting; i<nSetting; i++, pSet++){
    if( pSet->width==0 ){
      int hasVersionableValue = pSet->versionable &&
          (db_get_versioned(pSet->name, NULL, NULL)!=0);
      if( pSet->bIfChng ){
        const char *zVal = db_get(pSet->name, 0);
        if( zVal==0 || fossil_strcmp(zVal,pSet->def)==0 ) continue;
      }
      onoff_attribute("", pSet->name,
                      pSet->var!=0 ? pSet->var : pSet->name /*works-like:"x"*/,
                      is_truth(pSet->def), hasVersionableValue);
      @ <a href='%R/help?cmd=%s(pSet->name)'>%h(pSet->name)</a>
      if( pSet->versionable ){
        @  (v)<br>
      } else {