How do I ignore letter case during diffs?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
F1User
Posts: 2
Joined: Tue Nov 11, 2008 3:27 pm

How do I ignore letter case during diffs?

Post by F1User » Tue Nov 11, 2008 4:01 pm

Is there a way to ignore the case of letters when doing a diff? For example, I do not want "SQL" vs "sql" to show up as a difference.

Thank you.

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

Re: How do I ignore letter case during diffs?

Post by jeffhostetler » Wed Nov 12, 2008 3:34 pm

In DiffMerge you can have it ignore case. There are several options here,
but I'll give you the most inclusive:

In the status bar at the bottom of the screen on the file difference window
you should see the name of a Ruleset. Open the Options Dialog and select
the "Rulesets" page. Edit the Ruleset that was listed in the status bar.

[] On the "Line Handling" page, make sure that the "Ignore/Fold Case..." item
is checked.

[] On the "Content Handling" page, un-check "Case is Important" in the "Default
Context".

Then close the dialogs.

With all this in place, you can show/hide differences in case by using the
"Hide Unimportant Differences" on the View Menu.

This should take care of most of what you want. It will ignore case differences
in most of the document. If the Ruleset has defined "Literal Contexts", such as
quoted strings, you'll still see differences there. These can be turned off too,
by editing each of the individual literal context definitions like you did for the
default context.

Let us know if you have questions or problems getting this to work,
jeff

F1User
Posts: 2
Joined: Tue Nov 11, 2008 3:27 pm

Re: How do I ignore letter case during diffs?

Post by F1User » Wed Nov 26, 2008 2:42 pm

Jeff -

This worked. Thank you very much.

- Gene

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: How do I ignore letter case during diffs?

Post by lbauer » Wed Nov 26, 2008 3:57 pm

Glad that worked for you.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply