| | @@ -855,10 +855,11 @@ |
| 855 | 855 | const char *zBinGlob = 0; /* Treat file names matching this as binary */ |
| 856 | 856 | int fIncludeBinary = 0; /* Include binary files for external diff */ |
| 857 | 857 | int againstUndo = 0; /* Diff against files in the undo buffer */ |
| 858 | 858 | u64 diffFlags = 0; /* Flags to control the DIFF */ |
| 859 | 859 | FileDirList *pFileDir = 0; /* Restrict the diff to these files */ |
| 860 | + g.diffCnt[0] = g.diffCnt[1] = g.diffCnt[2] = 0; |
| 860 | 861 | |
| 861 | 862 | if( find_option("tk",0,0)!=0 || has_option("tclsh") ){ |
| 862 | 863 | diff_tk("diff", 2); |
| 863 | 864 | return; |
| 864 | 865 | } |
| | @@ -958,10 +959,13 @@ |
| 958 | 959 | } |
| 959 | 960 | fossil_free(pFileDir[i].zName); |
| 960 | 961 | } |
| 961 | 962 | fossil_free(pFileDir); |
| 962 | 963 | } |
| 964 | + if ( diffFlags & DIFF_NUMSTAT ) |
| 965 | + fossil_print("%d files changed, %d insertions, %d deletions\n", |
| 966 | + g.diffCnt[0], g.diffCnt[1], g.diffCnt[2]); |
| 963 | 967 | } |
| 964 | 968 | |
| 965 | 969 | /* |
| 966 | 970 | ** WEBPAGE: vpatch |
| 967 | 971 | ** URL: /vpatch?from=FROM&to=TO |
| 968 | 972 | |