Enable/disable Semantic Diff per file-extension
Add a way to configure (at least be .conf file) for which file-extensions Semantic Diff will be activated.
Since release 5.4.16.701 Semantic Diff will revert to text-based diff when it fails to parse a file, but it should be possible to disable it completely for some files (C++ .h headers for example) where the implementation is not yet complete (or simply because the user prefers a standard text-based diff).
![](https://secure.gravatar.com/avatar/37679eb88ea3dc040d1db1020847627e?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
Implemented a mechanism to disable Semantic Diff for certain file extensions. A semanticexcluded.conf file can be placed inside the Plastic SCM configuration directory: HOMEPATH/AppData/Local/plastic4. This file will contain patterns to match the files to diff. Semantic diff will be disabled for files whose path matches any of those patterns.
Example: Having the following semanticexcluded.conf file:
*.h
/src/core
The semantic diff won’t be displayed for the following items (server path format):
/lib/headers/core.h
/kernel/kernel.h
/src/core/main.cpp
/src/core/modules/network.c
-
Göran Wallgren commented
Excellent! Will we be able to put this .conf file in the repo root as well, similar to ignore.conf ? That way we could easily get the same settings for all users of that repo...