Git Merge Conflict Resolution Leveraging Strategy Classification and LLM


연구 분야: Software Development



학회: 2023 IEEE 23rd International Conference on Software Quality, Reliability, and Security (QRS)


초록

In the realm of collaborative software development, version control systems (VCS) like Git play an indispensable role, enabling concurrent development and facilitating seamless integration of disparate code contributions. Despite these benefits, merge conflicts resulting from simultaneous changes to identical code lines often pose significant challenges to the integration process. Addressing this challenge, our paper introduces a novel two-stage approach, termed as CHATMERGE, for resolving Git merge conflicts. CHATMERGE pioneers a unique strategy that employs machine learning to initially predict resolution strategies, and subsequently leverages a large language model, ChatGPT, to create resolutions for conflicts that necessitate complex resolution strategies. A series of comprehensive experiments validate CHATMERGE’s efficacy, demonstrating its impressive alignment with historical manual resolutions and its superior performance relative to existing, publicly accessible tools. The paper further explores the influence of various classification algorithms and the prompt construction process for ChatGPT, providing further insights into the merge conflict resolution process. Moreover, to foster continued advancements in this area, CHATMERGE, along with its associated training and testing datasets, is made publicly available, offering a valuable resource for both developers and researchers. This work, therefore, provides both an innovative solution to merge conflict resolution and a strong foundation for future explorations in this domain.


Author Profile
Chaochao Shen

College of Computer Science and Technology Nanjing University of Aeronautics and Astronautics China

Andorra
Author Profile
Wenhua Yang

College of Computer Science and Technology Nanjing University of Aeronautics and Astronautics China

Andorra
Author Profile
Minxue Pan

State Key Laboratory for Novel Software Technology Nanjing University China

China

📄 논문 정보

발행 연도 2023년
인용수 1
출판 국가 Andorra, China
사이트 IEEE
좋아요 수 0

연관 논문 목록 (223건)