3 ms·
git diff understands function boundaries, and for many languages will “report” equally well on a single file. It’s a good idea to break things down to files al
by beagle3 4y ago
git diff understands function boundaries, and for many languages will “report” equally well on a single file.
It’s a good idea to break things down to files along logical boundaries. But got reporting isn’t a reason.
edit: "got diff" -> "git diff". DYAC and responding from mobile!
- joshuamorton 4y agoGit diff absolutely does not understand function boundaries, it's diff algorithms routinely confuse things like adding a single new function, thinking that the diff should begin with a "}", instead of a function definition.