Fine-grained and accurate source code differencing
Jean‐Rémy Falleri, Floréal Morandat, Xavier Blanc et al. · IEEE/ACM International Conference on Automated Software Engineering (ASE) · 2014
At the heart of software evolution is a sequence of edit actions, called an edit script, made to a source code file. Since software systems are stored version by version, the edit script has to be computed from these versions, which is known as a complex task. Existing approaches usually compute edit scripts at the text granularity with only add line and delete line actions. However, inferring syntactic changes from such an edit script is hard. Since moving code is a frequent action performed when editing code, it should also be taken into account. In this paper, we tackle these issues by introducing an algorithm computing edit scripts at the abstract syntax tree granularity including move actions. Our objective is to compute edit scripts that are short and close to the original developer intent. Our algorithm is implemented in a freely-available and extensible tool that has been intensively validated.
Cited by 549 works. doi:10.1145/2642937.2642982
Authors
References
- The Measurement of Observer Agreement for Categorical Data
- A Coefficient of Agreement for Nominal Scales
- Measuring nominal scale agreement among many raters.
- AnO(ND) difference algorithm and its variations
- A file comparison program
- Educational and Psychological Measurement
- Change detection in hierarchically structured information
- A survey on tree edit distance and related problems
- Detecting changes in XML documents
- Change Distilling:Tree Differencing for Fine-Grained Source Code Change Extraction