Use CCompare1.12 to deeply compare a large number of files in a folder, find files with different real texts, and ignore specific files to speed up the comparison process

I don’t know if you have ever encountered it. To compare the text codes in two large folders, there may be more than tens of thousands of files in total, many of which are intermediate files such as vs or svn, which do not need to be compared.

I have an example here: more than 3,000 folders, 70,000 files, and a large number of svn/debug/release/ui_ etc. VS intermediate compilation folders, just loading the directory takes a lot of effort!

Finally, the comparison is completed, and the screen is full of differences marked in red! In fact, the text content of these files is exactly the same. In order to speed up the comparison, some similar comparison tools also count factors such as the creation time of the file as one of the comparison items. Open the comparison file and find that it is actually the same, and it is impossible to quickly locate the real different file.

How to filter out intermediate files that do not need to be compared? How to find out only the files whose real text content is different?

Only need two simple steps, CCompare can be completed efficiently.

Click the "Rules" button on the comparison folder interface, 1) Select the in-depth comparison file text mode, you can find out the files with different text content, and ignore the md5 value and creation time of the files. Avoid a large number of non-text and different files marked in red to interfere with the line of sight.

2) Under the skip directory, fill in specific directories that need to be skipped, such as svn vs debug release and other folders, and separate them with semicolons. In addition, fill in the suffix of the file that needs to be ignored for comparison under "Skip file type". For example, .sln is an intermediate file of vs project. Finally, fill in the prefix of the file name that needs to be skipped. For example, the file starting with ui_ is an intermediate file generated by Qt when compiling the interface ui. A large number of such files are file types that do not need to be submitted to svn.

 Click OK, and then reload the directory for comparison.

When we ignore the release debug svn vs and other directories, the original 3000 subdirectories need to be loaded, but it is reduced to only about 1000. Files were reduced from over 70,000 to over 34,000. The useless work process that does not require comparison is greatly reduced!

In-depth comparison of the text mode of the file will find out the code files with really different text content, avoiding a lot of red-marked sight interference.

 After the comparison is over, you can get the code files that programmers really care about and have different texts!

 Download link: CCompare1.12 download

Guess you like

Origin blog.csdn.net/peterbig/article/details/124424777
Recommended