arrow
Return

How different are different diff algorithms in Git? Use --histogram for code changes

delete2019-09-11
delete30
delete
OA
AI
Y
Yusuf Sulistyo Nugroho
H
Hideaki Hata *
Kenichi Matsumoto cover
Kenichi Matsumoto (Kenichi Matsumoto)
DOI:10.1007/s10664-019-09772-zdelete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Automatic identification of the differences between two versions of a file is a common and basic task in several applications of mining code repositories. Git, a version control system, has a diff utility and users can select algorithms of diff from the default algorithm Myers to the advanced Histogram algorithm. From our systematic mapping, we identified three popular applications of diff in recent studies. On the impact on code churn metrics in 14 Java projects, we obtained different values in 1.7% to 8.2% commits based on the different diff algorithms. Regarding bug-introducing change identification, we found 6.0% and 13.3% in the identified bug-fix commits had different results of bug-introducing changes from 10 Java projects. For patch application, we found that the Histogram is more suitable than Myers for providing the changes of code, from our manual analysis. Thus, we strongly recommend using the Histogram algorithm when mining Git repositories to consider differences in source code.
Keywords:
Code changes
Diff
Histogram algorithm
Mining repositories
Measuring the quality of diff algorithms: a formalization
err2016-05-01
err6
errOAAI
errBarabucci, Gioele; Ciancarini, Paolo; Di Iorio, Angelo; Vitali, Fabio
errShare
errSave
How does code readability change during software evolution?
err2020-09-24
err16
PREAI
errPiantadosi, Valentina; Fierro, Fabiana; Scalabrino, Simone; Serebrenik, Alexander; Oliveto, Rocco
errShare
errSave
Refining code ownership with synchronous changes
err2010-09-16
err12
errOAAI
errHattori, Lile Palma; Lanza, Michele; Robbes, Romain
errShare
errSave
On tracking Java methods with Git mechanisms
err2020-07-01
err20
errOAAI
errHigo, Yoshiki; Hayashi, Shinpei; Kusumoto, Shinji
errShare
errSave
A Systematic Mapping Study on Analysis of Code Repositories
err2021-06-02
err4
errOAAI
errSayago-Heredia, Jaime; Perez-Castillo, Ricardo; Piattini, Mario
errShare
errSave

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
6.4K

Organization

No organization information available
Cited Papers

Cited Papers

Balanocarpol, a new polyphenol from Balanocarpus zeylanicus(trimen) and Hopea jucunda(Thw.)(Dipterocarpaceae)
err1985-01-01
err0
PREAI
errM. N. Champika Diyasena; Subramaniam Sotheeswaran; Sivagnanasunderam Surendrakumar; Sinnathamby Balasubramanian; Michael Bokel; Wolfgang Kraus
errShare
errSave
The Role of Minimally Invasive Surgery in Multifocal Renal Cell Carcinoma
err2012-04-27
err0
PREAI
errSerge Ginzburg; Robert G. Uzzo; Alexander Kutikov
errShare
errSave
A Framework for Evaluating the Results of the SZZ Approach for Identifying Bug-Introducing Changes
err2017-07-01
err139
PREAI
errda Costa, Daniel Alencar; McIntosh, Shane; Shang, Weiyi; Kulesza, Uira; Coelho, Roberta; Hassan, Ahmed E.
errShare
errSave
On the reliability of mapping studies in software engineering
err2013-10-01
err132
errOAAI
errWohlin, Claes; Runeson, Per; da Mota Silveira Neto, Paulo Anselmo; Engstrom, Emelie; Machado, Ivan do Carmo; de Almeida, Eduardo Santana
errShare
errSave
Selective monoamine oxidase inhibitors. 1. Compounds related to 4-aminophenethylamine
err2002-05-01
err0
PREAI
errLennart Florvall; Anna Lena Ask; Sven Ove Ogren; Svante B. Ross
errShare
errSave
Addressing limitations of the Gait Variability Index to enhance its applicability: The enhanced GVI (EGVI)
err2018-06-01
err0
errOAAI
errArnaud Gouelle; Linda Rennie; David J. Clark; Fabrice Mégrot; Chitralakshmi K. Balasubramanian
errShare
errSave
Development of novel and non‐invasive diagnostic markers for lower urinary tract symptoms using urothelial cells in voided urine
err2017-10-17
err0
PREAI
errHiroshi Shimura; Takahiko Mitsui; Sachiko Tsuchiya; Tatsuya Miyamoto; Tatsuya Ihara; Satoru Kira; Hiroshi Nakagomi; Norifumi Sawada; Yuki Imai; Takanori Mochizuki; Masayuki Takeda
errShare
errSave
researcher View more