Fossil SCM
Rename the new --www option (check-in [f3961f453aee1ef5]) to --browser and -b. Add the --by option as shorthand for --browser --sidebyside, as that is expected to be a common usage pattern.
Commit
9a3372eec5e549aaf4ffdf57099333e2def162c20bd0f0e12194f5729cd1d9a4
Parent
2f122aac73f6b62…
2 files changed
+7
-3
+15
-14
+7
-3
| --- src/diff.c | ||
| +++ src/diff.c | ||
| @@ -43,11 +43,11 @@ | ||
| 43 | 43 | #define DIFF_CONTEXT_EX (((u64)0x04)<<32) /* Use context even if zero */ |
| 44 | 44 | #define DIFF_NOTTOOBIG (((u64)0x08)<<32) /* Only display if not too big */ |
| 45 | 45 | #define DIFF_STRIP_EOLCR (((u64)0x10)<<32) /* Strip trailing CR */ |
| 46 | 46 | #define DIFF_SLOW_SBS (((u64)0x20)<<32) /* Better but slower side-by-side */ |
| 47 | 47 | #define DIFF_WEBPAGE (((u64)0x40)<<32) /* Complete webpage */ |
| 48 | -#define DIFF_WWW (((u64)0x80)<<32) /* The --www option */ | |
| 48 | +#define DIFF_BROWSER (((u64)0x80)<<32) /* The --browser option */ | |
| 49 | 49 | |
| 50 | 50 | /* |
| 51 | 51 | ** These error messages are shared in multiple locations. They are defined |
| 52 | 52 | ** here for consistency. |
| 53 | 53 | */ |
| @@ -2042,12 +2042,16 @@ | ||
| 2042 | 2042 | if( find_option("invert",0,0)!=0 ) diffFlags |= DIFF_INVERT; |
| 2043 | 2043 | if( find_option("brief",0,0)!=0 ) diffFlags |= DIFF_BRIEF; |
| 2044 | 2044 | if( find_option("webpage",0,0)!=0 ){ |
| 2045 | 2045 | diffFlags |= DIFF_HTML|DIFF_WEBPAGE|DIFF_LINENO; |
| 2046 | 2046 | } |
| 2047 | - if( find_option("www",0,0)!=0 ){ | |
| 2048 | - diffFlags |= DIFF_HTML|DIFF_WEBPAGE|DIFF_LINENO|DIFF_WWW; | |
| 2047 | + if( find_option("browser","b",0)!=0 ){ | |
| 2048 | + diffFlags |= DIFF_HTML|DIFF_WEBPAGE|DIFF_LINENO|DIFF_BROWSER; | |
| 2049 | + } | |
| 2050 | + if( find_option("by",0,0)!=0 ){ | |
| 2051 | + diffFlags |= DIFF_HTML|DIFF_WEBPAGE|DIFF_LINENO|DIFF_BROWSER | |
| 2052 | + |DIFF_SIDEBYSIDE; | |
| 2049 | 2053 | } |
| 2050 | 2054 | return diffFlags; |
| 2051 | 2055 | } |
| 2052 | 2056 | |
| 2053 | 2057 | /* |
| 2054 | 2058 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -43,11 +43,11 @@ | |
| 43 | #define DIFF_CONTEXT_EX (((u64)0x04)<<32) /* Use context even if zero */ |
| 44 | #define DIFF_NOTTOOBIG (((u64)0x08)<<32) /* Only display if not too big */ |
| 45 | #define DIFF_STRIP_EOLCR (((u64)0x10)<<32) /* Strip trailing CR */ |
| 46 | #define DIFF_SLOW_SBS (((u64)0x20)<<32) /* Better but slower side-by-side */ |
| 47 | #define DIFF_WEBPAGE (((u64)0x40)<<32) /* Complete webpage */ |
| 48 | #define DIFF_WWW (((u64)0x80)<<32) /* The --www option */ |
| 49 | |
| 50 | /* |
| 51 | ** These error messages are shared in multiple locations. They are defined |
| 52 | ** here for consistency. |
| 53 | */ |
| @@ -2042,12 +2042,16 @@ | |
| 2042 | if( find_option("invert",0,0)!=0 ) diffFlags |= DIFF_INVERT; |
| 2043 | if( find_option("brief",0,0)!=0 ) diffFlags |= DIFF_BRIEF; |
| 2044 | if( find_option("webpage",0,0)!=0 ){ |
| 2045 | diffFlags |= DIFF_HTML|DIFF_WEBPAGE|DIFF_LINENO; |
| 2046 | } |
| 2047 | if( find_option("www",0,0)!=0 ){ |
| 2048 | diffFlags |= DIFF_HTML|DIFF_WEBPAGE|DIFF_LINENO|DIFF_WWW; |
| 2049 | } |
| 2050 | return diffFlags; |
| 2051 | } |
| 2052 | |
| 2053 | /* |
| 2054 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -43,11 +43,11 @@ | |
| 43 | #define DIFF_CONTEXT_EX (((u64)0x04)<<32) /* Use context even if zero */ |
| 44 | #define DIFF_NOTTOOBIG (((u64)0x08)<<32) /* Only display if not too big */ |
| 45 | #define DIFF_STRIP_EOLCR (((u64)0x10)<<32) /* Strip trailing CR */ |
| 46 | #define DIFF_SLOW_SBS (((u64)0x20)<<32) /* Better but slower side-by-side */ |
| 47 | #define DIFF_WEBPAGE (((u64)0x40)<<32) /* Complete webpage */ |
| 48 | #define DIFF_BROWSER (((u64)0x80)<<32) /* The --browser option */ |
| 49 | |
| 50 | /* |
| 51 | ** These error messages are shared in multiple locations. They are defined |
| 52 | ** here for consistency. |
| 53 | */ |
| @@ -2042,12 +2042,16 @@ | |
| 2042 | if( find_option("invert",0,0)!=0 ) diffFlags |= DIFF_INVERT; |
| 2043 | if( find_option("brief",0,0)!=0 ) diffFlags |= DIFF_BRIEF; |
| 2044 | if( find_option("webpage",0,0)!=0 ){ |
| 2045 | diffFlags |= DIFF_HTML|DIFF_WEBPAGE|DIFF_LINENO; |
| 2046 | } |
| 2047 | if( find_option("browser","b",0)!=0 ){ |
| 2048 | diffFlags |= DIFF_HTML|DIFF_WEBPAGE|DIFF_LINENO|DIFF_BROWSER; |
| 2049 | } |
| 2050 | if( find_option("by",0,0)!=0 ){ |
| 2051 | diffFlags |= DIFF_HTML|DIFF_WEBPAGE|DIFF_LINENO|DIFF_BROWSER |
| 2052 | |DIFF_SIDEBYSIDE; |
| 2053 | } |
| 2054 | return diffFlags; |
| 2055 | } |
| 2056 | |
| 2057 | /* |
| 2058 |
+15
-14
| --- src/diffcmd.c | ||
| +++ src/diffcmd.c | ||
| @@ -237,24 +237,24 @@ | ||
| 237 | 237 | @ </body> |
| 238 | 238 | @ </html> |
| 239 | 239 | ; |
| 240 | 240 | |
| 241 | 241 | /* |
| 242 | -** State variables used by the --www option for diff | |
| 242 | +** State variables used by the --browser option for diff | |
| 243 | 243 | */ |
| 244 | 244 | static char *tempDiffFilename; /* File holding the diff HTML */ |
| 245 | 245 | static FILE *diffOut; /* Open to write into tempDiffFilename */ |
| 246 | 246 | |
| 247 | 247 | /* Amount of delay (in milliseconds) between launching the |
| 248 | -** web browser and deleting the temporary file used by --www | |
| 248 | +** web browser and deleting the temporary file used by --browser | |
| 249 | 249 | */ |
| 250 | -#ifndef FOSSIL_WWW_DIFF_DELAY | |
| 251 | -# define FOSSIL_WWW_DIFF_DELAY 5000 /* 5 seconds by default */ | |
| 250 | +#ifndef FOSSIL_BROWSER_DIFF_DELAY | |
| 251 | +# define FOSSIL_BROWSER_DIFF_DELAY 5000 /* 5 seconds by default */ | |
| 252 | 252 | #endif |
| 253 | 253 | |
| 254 | 254 | /* |
| 255 | -** If we catch a single while writing the temporary file for the --www | |
| 255 | +** If we catch a single while writing the temporary file for the --browser | |
| 256 | 256 | ** diff output, then delete the temporary file and exit. |
| 257 | 257 | */ |
| 258 | 258 | static void diff_www_interrupt(int NotUsed){ |
| 259 | 259 | (void)NotUsed; |
| 260 | 260 | if( diffOut ) fclose(diffOut); |
| @@ -270,18 +270,18 @@ | ||
| 270 | 270 | |
| 271 | 271 | |
| 272 | 272 | /* |
| 273 | 273 | ** Do preliminary setup and output before computing a diff. |
| 274 | 274 | ** |
| 275 | -** For --www, redirect stdout to a temporary file that will | |
| 275 | +** For --browser, redirect stdout to a temporary file that will | |
| 276 | 276 | ** hold the result. Make arrangements to delete that temporary |
| 277 | 277 | ** file if the diff is interrupted. |
| 278 | 278 | ** |
| 279 | -** For --www and --webpage, output the HTML header. | |
| 279 | +** For --browser and --webpage, output the HTML header. | |
| 280 | 280 | */ |
| 281 | 281 | void diff_begin(u64 diffFlags){ |
| 282 | - if( (diffFlags & DIFF_WWW)!=0 ){ | |
| 282 | + if( (diffFlags & DIFF_BROWSER)!=0 ){ | |
| 283 | 283 | tempDiffFilename = fossil_temp_filename(); |
| 284 | 284 | tempDiffFilename = sqlite3_mprintf("%z.html", tempDiffFilename); |
| 285 | 285 | diffOut = freopen(tempDiffFilename,"wb",stdout); |
| 286 | 286 | if( diffOut==0 ){ |
| 287 | 287 | fossil_fatal("unable to create temporary file \"%s\"", |
| @@ -305,33 +305,33 @@ | ||
| 305 | 305 | } |
| 306 | 306 | |
| 307 | 307 | /* Do any final output required by a diff and complete the diff |
| 308 | 308 | ** process. |
| 309 | 309 | ** |
| 310 | -** For --www and --webpage, output any javascript required by | |
| 310 | +** For --browser and --webpage, output any javascript required by | |
| 311 | 311 | ** the diff. (Currently JS is only needed for side-by-side diffs). |
| 312 | 312 | ** |
| 313 | -** For --www, close the connection to the temporary file, then | |
| 313 | +** For --browser, close the connection to the temporary file, then | |
| 314 | 314 | ** launch a web browser to view the file. After a delay |
| 315 | -** of FOSSIL_WWW_DIFF_DELAY milliseconds, delete the temp file. | |
| 315 | +** of FOSSIL_BROWSER_DIFF_DELAY milliseconds, delete the temp file. | |
| 316 | 316 | */ |
| 317 | 317 | void diff_end(u64 diffFlags, int nErr){ |
| 318 | 318 | if( (diffFlags & DIFF_WEBPAGE)!=0 ){ |
| 319 | 319 | if( diffFlags & DIFF_SIDEBYSIDE ){ |
| 320 | 320 | const unsigned char *zJs = builtin_file("sbsdiff.js", 0); |
| 321 | 321 | fossil_print("<script>\n%s</script>\n", zJs); |
| 322 | 322 | } |
| 323 | 323 | fossil_print("%s", zWebpageEnd); |
| 324 | 324 | } |
| 325 | - if( (diffFlags & DIFF_WWW)!=0 && nErr==0 ){ | |
| 325 | + if( (diffFlags & DIFF_BROWSER)!=0 && nErr==0 ){ | |
| 326 | 326 | char *zCmd = mprintf("%$ %$", fossil_web_browser(), tempDiffFilename); |
| 327 | 327 | fclose(diffOut); |
| 328 | 328 | diffOut = freopen(NULL_DEVICE, "wb", stdout); |
| 329 | 329 | fossil_system(zCmd); |
| 330 | 330 | fossil_free(zCmd); |
| 331 | 331 | diffOut = 0; |
| 332 | - sqlite3_sleep(FOSSIL_WWW_DIFF_DELAY); | |
| 332 | + sqlite3_sleep(FOSSIL_BROWSER_DIFF_DELAY); | |
| 333 | 333 | file_delete(tempDiffFilename); |
| 334 | 334 | sqlite3_free(tempDiffFilename); |
| 335 | 335 | tempDiffFilename = 0; |
| 336 | 336 | } |
| 337 | 337 | } |
| @@ -1019,10 +1019,12 @@ | ||
| 1019 | 1019 | ** Options: |
| 1020 | 1020 | ** --binary PATTERN Treat files that match the glob PATTERN |
| 1021 | 1021 | ** as binary |
| 1022 | 1022 | ** --branch BRANCH Show diff of all changes on BRANCH |
| 1023 | 1023 | ** --brief Show filenames only |
| 1024 | +** -b|--browser Show the diff output in a web-browser | |
| 1025 | +** --by Shorthand for "--browser -y" | |
| 1024 | 1026 | ** --checkin VERSION Show diff of all changes in VERSION |
| 1025 | 1027 | ** --command PROG External diff program. Overrides "diff-command" |
| 1026 | 1028 | ** -c|--context N Use N lines of context |
| 1027 | 1029 | ** --diff-binary BOOL Include binary files with external commands |
| 1028 | 1030 | ** --exec-abs-paths Force absolute path names on external commands |
| @@ -1040,11 +1042,10 @@ | ||
| 1040 | 1042 | ** --undo Diff against the "undo" buffer |
| 1041 | 1043 | ** --unified Unified diff |
| 1042 | 1044 | ** -v|--verbose Output complete text of added or deleted files |
| 1043 | 1045 | ** --webpage Format output as a stand-alone HTML webpage |
| 1044 | 1046 | ** -W|--width N Width of lines in side-by-side diff |
| 1045 | -** --www Show the diff output in a web-browser | |
| 1046 | 1047 | ** -Z|--ignore-trailing-space Ignore changes to end-of-line whitespace |
| 1047 | 1048 | */ |
| 1048 | 1049 | void diff_cmd(void){ |
| 1049 | 1050 | int isGDiff; /* True for gdiff. False for normal diff */ |
| 1050 | 1051 | int isInternDiff; /* True for internal diff */ |
| 1051 | 1052 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -237,24 +237,24 @@ | |
| 237 | @ </body> |
| 238 | @ </html> |
| 239 | ; |
| 240 | |
| 241 | /* |
| 242 | ** State variables used by the --www option for diff |
| 243 | */ |
| 244 | static char *tempDiffFilename; /* File holding the diff HTML */ |
| 245 | static FILE *diffOut; /* Open to write into tempDiffFilename */ |
| 246 | |
| 247 | /* Amount of delay (in milliseconds) between launching the |
| 248 | ** web browser and deleting the temporary file used by --www |
| 249 | */ |
| 250 | #ifndef FOSSIL_WWW_DIFF_DELAY |
| 251 | # define FOSSIL_WWW_DIFF_DELAY 5000 /* 5 seconds by default */ |
| 252 | #endif |
| 253 | |
| 254 | /* |
| 255 | ** If we catch a single while writing the temporary file for the --www |
| 256 | ** diff output, then delete the temporary file and exit. |
| 257 | */ |
| 258 | static void diff_www_interrupt(int NotUsed){ |
| 259 | (void)NotUsed; |
| 260 | if( diffOut ) fclose(diffOut); |
| @@ -270,18 +270,18 @@ | |
| 270 | |
| 271 | |
| 272 | /* |
| 273 | ** Do preliminary setup and output before computing a diff. |
| 274 | ** |
| 275 | ** For --www, redirect stdout to a temporary file that will |
| 276 | ** hold the result. Make arrangements to delete that temporary |
| 277 | ** file if the diff is interrupted. |
| 278 | ** |
| 279 | ** For --www and --webpage, output the HTML header. |
| 280 | */ |
| 281 | void diff_begin(u64 diffFlags){ |
| 282 | if( (diffFlags & DIFF_WWW)!=0 ){ |
| 283 | tempDiffFilename = fossil_temp_filename(); |
| 284 | tempDiffFilename = sqlite3_mprintf("%z.html", tempDiffFilename); |
| 285 | diffOut = freopen(tempDiffFilename,"wb",stdout); |
| 286 | if( diffOut==0 ){ |
| 287 | fossil_fatal("unable to create temporary file \"%s\"", |
| @@ -305,33 +305,33 @@ | |
| 305 | } |
| 306 | |
| 307 | /* Do any final output required by a diff and complete the diff |
| 308 | ** process. |
| 309 | ** |
| 310 | ** For --www and --webpage, output any javascript required by |
| 311 | ** the diff. (Currently JS is only needed for side-by-side diffs). |
| 312 | ** |
| 313 | ** For --www, close the connection to the temporary file, then |
| 314 | ** launch a web browser to view the file. After a delay |
| 315 | ** of FOSSIL_WWW_DIFF_DELAY milliseconds, delete the temp file. |
| 316 | */ |
| 317 | void diff_end(u64 diffFlags, int nErr){ |
| 318 | if( (diffFlags & DIFF_WEBPAGE)!=0 ){ |
| 319 | if( diffFlags & DIFF_SIDEBYSIDE ){ |
| 320 | const unsigned char *zJs = builtin_file("sbsdiff.js", 0); |
| 321 | fossil_print("<script>\n%s</script>\n", zJs); |
| 322 | } |
| 323 | fossil_print("%s", zWebpageEnd); |
| 324 | } |
| 325 | if( (diffFlags & DIFF_WWW)!=0 && nErr==0 ){ |
| 326 | char *zCmd = mprintf("%$ %$", fossil_web_browser(), tempDiffFilename); |
| 327 | fclose(diffOut); |
| 328 | diffOut = freopen(NULL_DEVICE, "wb", stdout); |
| 329 | fossil_system(zCmd); |
| 330 | fossil_free(zCmd); |
| 331 | diffOut = 0; |
| 332 | sqlite3_sleep(FOSSIL_WWW_DIFF_DELAY); |
| 333 | file_delete(tempDiffFilename); |
| 334 | sqlite3_free(tempDiffFilename); |
| 335 | tempDiffFilename = 0; |
| 336 | } |
| 337 | } |
| @@ -1019,10 +1019,12 @@ | |
| 1019 | ** Options: |
| 1020 | ** --binary PATTERN Treat files that match the glob PATTERN |
| 1021 | ** as binary |
| 1022 | ** --branch BRANCH Show diff of all changes on BRANCH |
| 1023 | ** --brief Show filenames only |
| 1024 | ** --checkin VERSION Show diff of all changes in VERSION |
| 1025 | ** --command PROG External diff program. Overrides "diff-command" |
| 1026 | ** -c|--context N Use N lines of context |
| 1027 | ** --diff-binary BOOL Include binary files with external commands |
| 1028 | ** --exec-abs-paths Force absolute path names on external commands |
| @@ -1040,11 +1042,10 @@ | |
| 1040 | ** --undo Diff against the "undo" buffer |
| 1041 | ** --unified Unified diff |
| 1042 | ** -v|--verbose Output complete text of added or deleted files |
| 1043 | ** --webpage Format output as a stand-alone HTML webpage |
| 1044 | ** -W|--width N Width of lines in side-by-side diff |
| 1045 | ** --www Show the diff output in a web-browser |
| 1046 | ** -Z|--ignore-trailing-space Ignore changes to end-of-line whitespace |
| 1047 | */ |
| 1048 | void diff_cmd(void){ |
| 1049 | int isGDiff; /* True for gdiff. False for normal diff */ |
| 1050 | int isInternDiff; /* True for internal diff */ |
| 1051 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -237,24 +237,24 @@ | |
| 237 | @ </body> |
| 238 | @ </html> |
| 239 | ; |
| 240 | |
| 241 | /* |
| 242 | ** State variables used by the --browser option for diff |
| 243 | */ |
| 244 | static char *tempDiffFilename; /* File holding the diff HTML */ |
| 245 | static FILE *diffOut; /* Open to write into tempDiffFilename */ |
| 246 | |
| 247 | /* Amount of delay (in milliseconds) between launching the |
| 248 | ** web browser and deleting the temporary file used by --browser |
| 249 | */ |
| 250 | #ifndef FOSSIL_BROWSER_DIFF_DELAY |
| 251 | # define FOSSIL_BROWSER_DIFF_DELAY 5000 /* 5 seconds by default */ |
| 252 | #endif |
| 253 | |
| 254 | /* |
| 255 | ** If we catch a single while writing the temporary file for the --browser |
| 256 | ** diff output, then delete the temporary file and exit. |
| 257 | */ |
| 258 | static void diff_www_interrupt(int NotUsed){ |
| 259 | (void)NotUsed; |
| 260 | if( diffOut ) fclose(diffOut); |
| @@ -270,18 +270,18 @@ | |
| 270 | |
| 271 | |
| 272 | /* |
| 273 | ** Do preliminary setup and output before computing a diff. |
| 274 | ** |
| 275 | ** For --browser, redirect stdout to a temporary file that will |
| 276 | ** hold the result. Make arrangements to delete that temporary |
| 277 | ** file if the diff is interrupted. |
| 278 | ** |
| 279 | ** For --browser and --webpage, output the HTML header. |
| 280 | */ |
| 281 | void diff_begin(u64 diffFlags){ |
| 282 | if( (diffFlags & DIFF_BROWSER)!=0 ){ |
| 283 | tempDiffFilename = fossil_temp_filename(); |
| 284 | tempDiffFilename = sqlite3_mprintf("%z.html", tempDiffFilename); |
| 285 | diffOut = freopen(tempDiffFilename,"wb",stdout); |
| 286 | if( diffOut==0 ){ |
| 287 | fossil_fatal("unable to create temporary file \"%s\"", |
| @@ -305,33 +305,33 @@ | |
| 305 | } |
| 306 | |
| 307 | /* Do any final output required by a diff and complete the diff |
| 308 | ** process. |
| 309 | ** |
| 310 | ** For --browser and --webpage, output any javascript required by |
| 311 | ** the diff. (Currently JS is only needed for side-by-side diffs). |
| 312 | ** |
| 313 | ** For --browser, close the connection to the temporary file, then |
| 314 | ** launch a web browser to view the file. After a delay |
| 315 | ** of FOSSIL_BROWSER_DIFF_DELAY milliseconds, delete the temp file. |
| 316 | */ |
| 317 | void diff_end(u64 diffFlags, int nErr){ |
| 318 | if( (diffFlags & DIFF_WEBPAGE)!=0 ){ |
| 319 | if( diffFlags & DIFF_SIDEBYSIDE ){ |
| 320 | const unsigned char *zJs = builtin_file("sbsdiff.js", 0); |
| 321 | fossil_print("<script>\n%s</script>\n", zJs); |
| 322 | } |
| 323 | fossil_print("%s", zWebpageEnd); |
| 324 | } |
| 325 | if( (diffFlags & DIFF_BROWSER)!=0 && nErr==0 ){ |
| 326 | char *zCmd = mprintf("%$ %$", fossil_web_browser(), tempDiffFilename); |
| 327 | fclose(diffOut); |
| 328 | diffOut = freopen(NULL_DEVICE, "wb", stdout); |
| 329 | fossil_system(zCmd); |
| 330 | fossil_free(zCmd); |
| 331 | diffOut = 0; |
| 332 | sqlite3_sleep(FOSSIL_BROWSER_DIFF_DELAY); |
| 333 | file_delete(tempDiffFilename); |
| 334 | sqlite3_free(tempDiffFilename); |
| 335 | tempDiffFilename = 0; |
| 336 | } |
| 337 | } |
| @@ -1019,10 +1019,12 @@ | |
| 1019 | ** Options: |
| 1020 | ** --binary PATTERN Treat files that match the glob PATTERN |
| 1021 | ** as binary |
| 1022 | ** --branch BRANCH Show diff of all changes on BRANCH |
| 1023 | ** --brief Show filenames only |
| 1024 | ** -b|--browser Show the diff output in a web-browser |
| 1025 | ** --by Shorthand for "--browser -y" |
| 1026 | ** --checkin VERSION Show diff of all changes in VERSION |
| 1027 | ** --command PROG External diff program. Overrides "diff-command" |
| 1028 | ** -c|--context N Use N lines of context |
| 1029 | ** --diff-binary BOOL Include binary files with external commands |
| 1030 | ** --exec-abs-paths Force absolute path names on external commands |
| @@ -1040,11 +1042,10 @@ | |
| 1042 | ** --undo Diff against the "undo" buffer |
| 1043 | ** --unified Unified diff |
| 1044 | ** -v|--verbose Output complete text of added or deleted files |
| 1045 | ** --webpage Format output as a stand-alone HTML webpage |
| 1046 | ** -W|--width N Width of lines in side-by-side diff |
| 1047 | ** -Z|--ignore-trailing-space Ignore changes to end-of-line whitespace |
| 1048 | */ |
| 1049 | void diff_cmd(void){ |
| 1050 | int isGDiff; /* True for gdiff. False for normal diff */ |
| 1051 | int isInternDiff; /* True for internal diff */ |
| 1052 |