Announcement

Collapse
No announcement yet.

How to ignore file endings in BC 2.3.1 b231

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to ignore file endings in BC 2.3.1 b231

    Hello,
    I try to compare directories with .c;cpp;.h;hpp files. In about 5% of the cases the files differ in one or two empty lines at the end. It was not possible to tell BC to detect the files as identical. The unequal sign appears. If I go into the file and leave the "similar" appears. Not I need the "identical" since I have to check 20,000 files per compare. In the "File Comparison Rules" I switched on "Unimportant Text": Leading whitspaces, Embedding ws, Trailing whitespaces, Blank lines. "Ignore unimportant diffenrences" is switched on. What can I do?

    Best regards
    Oliver

  • #2
    Re: How to ignore file endings in BC 2.3.1 b231

    To ignore blanks lines in the Folder Viewer:

    1. Select Session|Comparison Control and check "Rules-based comparison".

    2. Make sure View|Ignore Unimportant Differences is turned on.

    3. Configure your rules to ignore blank lines. Select Tools|Options and go to the Rules section. Make sure the C/C++/C# Source rule is not red, meaning that another rule with matching file extension is overriding it. If it is, use the arrows to move the rule up. Next, select the C/C++/C# Source rule. Go to the Importance tab and make sure "Blank lines" is checked.

    This should allow you to compare the text contents of files in the Folder Viewer while ignoring blank line differences.

    If that doesn't solve your problem, please email a zip of your BC settings using Help|Support and the Export button to [email protected] and I'll try to determine what is causing the problem.

    Chris K Scooter Software

    Comment

    Working...
    X