Intelligent diff tool