I’m looking for a tool or plugin which provides a more Clojure-aware source code diffing function. What do I mean by this?
Traditionally, a source code diff works on a text file and shows you difference at the level of the line/character within a line. While this is certainly better than no diffing algorithm, I more useful solution would be something which performs a diff between two files which also understands the syntax of the language being diff’ed.
In the case of Clojure/Script, it would be a fairly straightforward matter of reading each file into the reader, and then performing a diff between the two resulting lists, and then producing a report of the changes. For example, it can produce statements such as
- added new function
- removed function
- move function
- updated function
- … and so on
You could even configure it to give more details on updates.
My question is, is anyone aware of such a tool or plugin which exists out there?