Search papers, labs, and topics across Lattice.
This paper introduces D-Diff, an interactive environment designed to facilitate the adjustment of commit boundaries in version control by providing a compact 3-way diff display of two consecutive commits. The tool significantly reduces the cognitive load on developers by allowing them to compare and modify diffs in a single view, leading to a 57% decrease in median adjustment time during user studies. While accuracy remained consistent with baseline tools, D-Diff received overwhelmingly positive usability feedback, highlighting its potential to enhance developer productivity.
Adjusting commit boundaries just got 57% faster with D-Diff, transforming how developers manage version control tasks.
In version control, it is recommended that each commit include only changes related to one task. To follow this recommendation, developers may need to adjust commit boundaries, that is, to compare and modify the diffs between two consecutive commits. Existing tools either display only a single diff at a time, forcing developers to rely on their memory when comparing diffs, or display three files simultaneously without showing the two consecutive diffs, forcing developers to infer them; both increase their cognitive load and hamper the adjustment. As a first step toward supporting this process, we propose D-Diff, an interactive diff adjustment environment for two consecutive commits that each involve the same single file. Based on a 3-way diff display, D-Diff integrates the two diffs into a single compact view, which also provides a way to modify them. A within-subjects user study with 8 participants showed that D-Diff significantly outperforms a baseline tool in terms of efficiency, reducing the median adjustment time from 530 seconds to 230 seconds (approximately 57%). D-Diff also received a higher percentage of positive responses across all usability questionnaire items, while no statistically significant difference was found in accuracy.