Lune

ICSE2022Top-tier venue

What Makes a Good Commit Message?

Yingchen Tian, Yuxia Zhang, Klaas-Jan Stol, Lin Jiang, Hui Liu

Abstract

A key issue in collaborative software development is communication among developers. One modality of communication is a commit message, in which developers describe the changes they make in a repository. As such, commit messages serve as an "audit trail" by which developers can understand how the source code of a project has changed---and why. Hence, the quality of commit messages affects the effectiveness of communication among developers. Commit messages are often of poor quality as developers lack time and motivation to craft a good message. Several automatic approaches have been proposed to generate commit messages. However, these are based on uncurated datasets including considerable proportions of poorly phrased commit messages. In this multi-method study, we first define what constitutes a "good" commit message, and then establish what proportion of commit messages lack information using a sample of almost 1,600 messages from five highly active open source projects. We find that an average of circa 44% of messages could be improved, suggesting the use of uncurated datasets may be a major threat when commit message generators are trained with such data. We also observe that prior work has not considered semantics of commit messages, and there is surprisingly little guidance available for writing good commit messages. To that end, we develop a taxonomy based on recurring patterns in commit messages' expressions. Finally, we investigate whether "good" commit messages can be automatically identified; such automation could prompt developers to write better commit messages.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

25 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • How Are Paid and Volunteer Open Source Developers Different? A Study of the Rust Project cites How do companies collaborate in open source ecosystems?: an empirical study of OpenStack
  • From Commit Message Generation to History-Aware Commit Message Completion cites Commit Message Matters: Investigating Impact and Evolution of Commit Message Quality
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers25

  1. Commit Message Matters: Investigating Impact and Evolution of Commit Message QualityJiawei Li, Iftekhar AhmedICSE 2023 · 26 citations
  2. From Commit Message Generation to History-Aware Commit Message CompletionAleksandra Eliseeva, Yaroslav Sokolov, Egor Bogomolov, Yaroslav Golubev et al.ASE 2023 · 22 citations
  3. Can GPT-4 Replicate Empirical Software Engineering Research?Jenny T. Liang, Carmen Badea, Christian Bird, Robert DeLine et al.FSE 2024 · 15 citations
  4. Delving into Commit-Issue Correlation to Enhance Commit Message Generation ModelsLiran Wang, Xunzhu Tang, Yichen He, Changyu Ren et al.ASE 2023 · 11 citations
  5. How Are Paid and Volunteer Open Source Developers Different? A Study of the Rust ProjectYuxia Zhang, Mian Qin, Klaas-Jan Stol, Minghui Zhou et al.ICSE 2024 · 10 citations

Builds on1

  1. How do companies collaborate in open source ecosystems?: an empirical study of OpenStackYuxia Zhang, Minghui Zhou, Klaas-Jan Stol, Jianyu Wu et al.ICSE 2020 · 34 citations

Related papers

  1. An Empirical Study on Learning-based Techniques for Explicit and Implicit Commit Messages GenerationZhiquan Huang, Yuan Huang, Xiangping Chen, Xiaocong Zhou et al.ASE 2024 · 2 citations
  2. FIRA: Fine-Grained Graph-Based Code Change Representation for Automated Commit Message GenerationJinhao Dong, Yiling Lou, Qihao Zhu, Zeyu Sun et al.ICSE 2022 · 50 citations
  3. RACE: Retrieval-augmented Commit Message GenerationEnsheng Shi, Yanlin Wang, Wei Tao, Lun Du et al.EMNLP 2022 · 36 citations
  4. Revisiting Learning-based Commit Message GenerationJinhao Dong, Yiling Lou, Dan Hao, Lin TanICSE 2023 · 8 citations
  5. Evaluating Generated Commit Messages with Large Language ModelsQunhong Zeng, Yuxia Zhang, Zexiong Ma, Bo Jiang et al.ICSE 2026
Dusk over the sea between two cliffs drawn in fine vertical lines