Ignore Case

Support for our DiffMerge utility.

Moderator: SourceGear

Post Reply
Zavior
Posts: 1
Joined: Thu Aug 26, 2010 4:26 pm

Ignore Case

Post by Zavior » Thu Aug 26, 2010 4:28 pm

Is there an option to ignore case when running DiffMerge? I'm trying to compare SQL statements and I'm getting a bunch of false positives because of case.

Ex. These are the same query but DiffMerge shows a difference because of case.

Code: Select all

SELECT *
FROM table

Code: Select all

select *
from table

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Ignore Case

Post by Beth » Mon Aug 30, 2010 9:36 am

Go to Tools - Options - Rulesets. Then either edit the Default ruleset, or the ruleset under custom that applies to your file. In the Edit window, you can click on Line Handling and select the option to ignore case, and you can click on Line Handling to check that the option Case is Important is not selected.
Beth Kieler
SourceGear Technical Support

opc.three@gmail.com
Posts: 2
Joined: Tue Sep 13, 2011 12:05 pm

Re: Ignore Case

Post by opc.three@gmail.com » Wed Mar 07, 2012 1:06 pm

This does not seem to be working in Version 3.3.0 (18513). It is still highlighting differences in case. Anyone having the same issue?

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Ignore Case

Post by Beth » Wed Mar 07, 2012 1:48 pm

There have been some updates to Diff/Merge. Would you be willing to try the latest version of Diff/Merge and let me know if you still have the issue after that?
Beth Kieler
SourceGear Technical Support

jeffhostetler
Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
Contact:

Re: Ignore Case

Post by jeffhostetler » Wed Mar 07, 2012 2:36 pm

You might try creating and/or editing your Ruleset for SQL files and
set the following and save it.

[1] on the "Line Handling" page, check "Ignore/Fold Case when Matching Lines".
[2] on the "Content Handling" page, under "Default Context Guidelines",
turn off "Case is Important".
[3] on the "Equivalence Mode" page, turn on "Ignore/Fold Case".

Then in your File Window, under the "View Menu", turn on "Hide Unimportant Differences"
and see if that helps.

jeff

Post Reply