Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This just occurred to me today. I've primarily been diffing files whole text using tools like BeyondCompare, etc.

Was wondering if there's a tool or functionality to do selective diffs of 2 files, where I only diff against one or set of specific (class) methods or functions or variables/properties within the given 2 files. Rather than a whole diff and then scroll through areas of interest.

Useful when you what to diff and merge 2 class libraries, etc. and only are concerned about methods/functions and members/properties (of interest) that have changed w/o having to diff the whole thing (and for diff whole thing, if diff tool not great, having to scroll and align changes as needed to view diffs when they're not matched up correctly).

share|improve this question

1 Answer 1

I think you are looking for a semantic diff/merge tool. There is a tool that allows you to get differences and merge up to method level (everything inside a method is treated like plain text). It's called semantic merge and you can find it here: http://semanticmerge.com.

Disclaimer: I work on the Semantic Merge team in Codice Software.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.