Domestic Journal Peer-reviewed

ソースコード編集操作の自動グループ化

Automated Grouping of Editing Operations of Source Code

星野 大樹, 林 晋平, 佐伯 元司

Daiki Hoshino, Shinpei Hayashi, Motoshi Saeki

コンピュータソフトウェア, vol. 31, no. 3, pp. 277–283, August 2014.

Abstract

ソフトウェア構成管理では,ソースコード変更を開発者にとって意味のある単位ごとに分割してコミットを行うこと(分割コミット)が重要となる.しかし開発者は分割コミットを行わずに様々な意図が混ざったコミットをすることがある.これに対し,ソースコードの編集操作を収集し,それらを分類することで分割コミットを支援する既存手法がある.本稿では,ソースコードにおけるファイルやクラス,メソッド,コメントおよび編集時間を分類の基準とし,これらに基づいて編集操作を自動的に分類する手法を提案する.提案手法を実現するツールを開発し,例題へ適用することにより,既存手法よりも分類の労力を低減することを確認した.

Abstract (English)

In software configuration management, it is important to separate source code changes into meaningful units before committing them (in short, Task Level Commit). However, developers often commit unrelated code changes in a single transaction. To support Task Level Commit, an existing technique uses an editing history of source code and enables developers to group the editing operations in the history. This paper proposes an automated technique for grouping editing operations in a history based on several criteria including source files, classes, methods, comments, and times editted. We show how our technique reduces developers' separating cost compared with the manual approach.

BibTeX

@article{dhoshino-jssst201408,
    author = {星野 大樹 and 林 晋平 and 佐伯 元司},
    title = {ソースコード編集操作の自動グループ化},
    journal = {コンピュータソフトウェア},
    volume = 31,
    number = 3,
    pages = {277--283},
    doi = {10.11309/jssst.31.3_277},
    year = 2014,
}
Type
Domestic Journal
Published
August 2014
Volume / Pages
vol. 31, no. 3, pp. 277–283
DOI
10.11309/jssst.31.3_277