Jump to content

Disable diff for minified files


Recommended Posts

Hello,

 

I wonder if it's possible to disablediff for certain files like minified ones (like style.min.css or script.min.js).

 

The problem is : when I click on those files in the pending changes view for example, it takes several minutes for my computer to calculate the diff between the minified files before and after changes.

 

Of course I try to not click on them but sometimes miss-clicks happen :/

 

May be is there an option I did not see ?

 

Thx !

Bastien.

Link to comment
Share on other sites

Hi Bastien,

 

well, the only way I can think of to do this is changing the revision type of all the .min.css file to "binary".

 

If they are binary the embedded diff will only display the metadata differences but not the file content.

 

You can change all the .min.css files to binary by running something like this using the command line:

dir /S mydir\*.min.css | cm crt -type=bin

If you find yourself in th situation where you want to open the real differences just revert it to text using the context menu of the file.

 

Hope it helps!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...