Content Handling bug

Support for our DiffMerge utility.

Moderator: SourceGear

Post Reply
DavidAccola
Posts: 1
Joined: Fri Jan 17, 2025 9:59 pm

Content Handling bug

Post by DavidAccola » Fri Jan 17, 2025 10:12 pm

I'm looking for a sanity check that the Content Handling behavior I'm seeing here is a bug.

It looks like DIffMerge is failing to ignore the Start Pattern for Content Handling that is set to not Classify Differences as Important. This is making it impossible to correctly ignore code comments.

Rep steps:
-Install Diffmerge v5.0.0.1 (DiffMerge_5.0.0.1.dev_x64.msi)
-Create an old.txt

Code: Select all

abc
def
-Create a new.txt

Code: Select all

abc
<!--comment test-->
def
-Open File Diff > Select files > OK
-File > Change Ruleset > XML FIles
Note that DiffMerge believes there is 1 change: the beginning of the comment <!--
It correctly ignores the rest of the comment, but not its Start Pattern.

Expectation:
DiffMerge ought to be ignoring <!-- as a part of the default Content Handling in the default XML Files ruleset.

My use case is actually SQL comments, but it's easier to demonstrate with the default XML File ruleset.

Edit: I'm going to assume this is a bug and go ahead and open up an issue at https://github.com/sourcegear/diffmerge/issues/4 (is that the best way to report issues nowadays?), but if I'm wrong and this is instead a config issue, please let me know! This is my first time trying out DiffMerge so I definitely could be missing something.

Image
Image

Tonya
Posts: 921
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Re: Content Handling bug

Post by Tonya » Mon Jan 20, 2025 11:24 am

Hello,

Reporting bugs or feature requests for DiffMerge via GitHub is the correct process. Moving forward, we will monitor any requests or input for DiffMerge using this method and not our support forum.

Tonya

Post Reply