In this thread I will post some common questions I see and their answers.
How Do I Exclude Comments?
I can't get DiffMerge Configured with Git
.
Common Questions
Moderator: SourceGear
Common Questions
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Common Questions
How do I Exclude Comments
In DiffMerge go to your Tools - Options - File Windows - Rulesets.
If you have a Custom Ruleset that matches your file type, then select that file type and click Edit, or you can click Edit for the Default Ruleset if that is what is being applied. In the new window, click on Content Handling.
Click Add next to the Matched Contents.
Enter in the start pattern for your comment. If there is a space after your start pattern, then you don't need anything else, but if you start the comment right away, then you need a wildcard. For example, if my comments start with \\, I might use \\* as the pattern, because my comments look like
After you apply your changes your comments will no longer highlight.
In DiffMerge go to your Tools - Options - File Windows - Rulesets.
If you have a Custom Ruleset that matches your file type, then select that file type and click Edit, or you can click Edit for the Default Ruleset if that is what is being applied. In the new window, click on Content Handling.
Click Add next to the Matched Contents.
Enter in the start pattern for your comment. If there is a space after your start pattern, then you don't need anything else, but if you start the comment right away, then you need a wildcard. For example, if my comments start with \\, I might use \\* as the pattern, because my comments look like
- \\This is my comment.
After you apply your changes your comments will no longer highlight.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Common Questions
Can't make DiffMerge work with Git
In your .gitconfig, add these lines:
Then when running a diff, add the switch
to use DiffMerge instead of the default.
In your .gitconfig, add these lines:
Code: Select all
[diff]
tool = diffmerge
[difftool "diffmerge"]
cmd = C:/Program\\ Files/SourceGear/Common/DiffMerge/sgdm.exe \"$LOCAL\" \"$REMOTE\"
[merge]
tool = diffmerge
[mergetool "diffmerge"]
trustExitCode = true
cmd = C:/Program\\ Files/SourceGear/Common/DiffMerge/sgdm.exe /merge /result=\"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
Code: Select all
-t=diffmerge
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support