Fossil SCM

Do not allow the (undocumented) --debug option to mess up --tk output.

drh 2025-03-17 17:13 trunk
Commit d7cf189344086745e52dd1a33467bf602b3fe17d87239570009c5b4456ec2f12
1 file changed +1
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -1210,10 +1210,11 @@
12101210
const char *zTempFile = 0;
12111211
char *zCmd;
12121212
const char *zTclsh;
12131213
int bDebug = find_option("tkdebug",0,0)!=0;
12141214
int bDarkMode = find_option("dark",0,0)!=0;
1215
+ (void)find_option("debug",0,0);
12151216
blob_zero(&script);
12161217
/* Caution: When this routine is called from the merge-info command,
12171218
** the --tcl argument requires an argument. But merge-info does not
12181219
** use -i, so we can take -i as that argument. This routine needs to
12191220
** always have -i after --tcl.
12201221
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -1210,10 +1210,11 @@
1210 const char *zTempFile = 0;
1211 char *zCmd;
1212 const char *zTclsh;
1213 int bDebug = find_option("tkdebug",0,0)!=0;
1214 int bDarkMode = find_option("dark",0,0)!=0;
 
1215 blob_zero(&script);
1216 /* Caution: When this routine is called from the merge-info command,
1217 ** the --tcl argument requires an argument. But merge-info does not
1218 ** use -i, so we can take -i as that argument. This routine needs to
1219 ** always have -i after --tcl.
1220
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -1210,10 +1210,11 @@
1210 const char *zTempFile = 0;
1211 char *zCmd;
1212 const char *zTclsh;
1213 int bDebug = find_option("tkdebug",0,0)!=0;
1214 int bDarkMode = find_option("dark",0,0)!=0;
1215 (void)find_option("debug",0,0);
1216 blob_zero(&script);
1217 /* Caution: When this routine is called from the merge-info command,
1218 ** the --tcl argument requires an argument. But merge-info does not
1219 ** use -i, so we can take -i as that argument. This routine needs to
1220 ** always have -i after --tcl.
1221

Keyboard Shortcuts

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