WizardMerge——将我们从毫无头绪的合并中拯救出来
WizardMerge -- Save Us From Merging Without Any Clues
AI总结:
针对 Git 文本合并易产生错误且开发者缺乏排查线索的问题,本文提出 WizardMerge,通过文本与 LLVM-IR 层面的代码块依赖分析提供修复建议,并在五个大型项目的 227 个冲突上验证其可减少 23.85% 合并时间。
摘要:
现代软件开发需要开发者之间进行高效的面向版本协作。尽管 Git 是最流行的版本控制系统,但由于其基于文本的工作流,它会产生不尽如人意的版本合并结果,从而可能在项目的合并版本中导致意外结果。尽管已经提出了许多用于改进合并结果的合并工具,开发者仍然难以在毫无线索的情况下解决冲突并修复被错误修改的代码。我们提出了 WizardMerge,这是一种辅助工具,它利用来自 Git 的合并结果,在文本和 LLVM-IR 层面检索代码块依赖关系,并为开发者提供建议,以解决由文本合并引入的错误。在评估中,我们让 WizardMerge 接受了五个大型项目中 227 个冲突的测试。结果表明,WizardMerge 降低了冲突合并的时间成本,实现了 23.85% 的缩减。除了解决冲突之外,WizardMerge 还为超过 70% 的可能受冲突影响的代码块提供合并建议。值得注意的是,WizardMerge 展现出识别与冲突无关、但需要人工干预且在合并期间被 Git 有害应用的代码块的能力。
英文摘要:
Modern software development necessitates efficient version-oriented collaboration among developers. While Git is the most popular version control system, it generates unsatisfactory version merging results due to textual-based workflow, leading to potentially unexpected results in the merged version of the project. Although numerous merging tools have been proposed for improving merge results, developers remain struggling to resolve the conflicts and fix incorrectly modified code without clues. We present WizardMerge, an auxiliary tool that leverages merging results from Git to retrieve code block dependency on text and LLVM-IR level and provide suggestions for developers to resolve errors introduced by textual merging. Through the evaluation, we subjected WizardMerge to testing on 227 conflicts within five large-scale projects. The outcomes demonstrate that WizardMerge diminishes conflict merging time costs, achieving a 23.85% reduction. Beyond addressing conflicts, WizardMerge provides merging suggestions for over 70% of the code blocks potentially affected by the conflicts. Notably, WizardMerge exhibits the capability to identify conflict-unrelated code blocks that require manual intervention yet are harmfully applied by Git during the merging.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。