Method for performing conditionalized N-way merging of source code
Abstract
A method combines N versions of a C/C++ program into a single, semantically correct, unified program, while maintaining the semantics of each version within N. The problem of merge conflicts is avoided by conditionalizing changes that potentially conflict, according to a set of preprocessors definitions that uniquely define the version within N. Conditionalization is realized through C/C++ preprocessing directives (e.g., #if, #else, #elif).
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 28 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for performing conditionalized N-way merging of source code associated with a program, comprising: collecting differential information for each of N versions of source code, the source code having lines of text; constructing a merge data structure using the differential information, the merge data structure comprising a plurality of common blocks and delta blocks, wherein each common block defines a respective sequence of textual lines of source code, each delta block defines an addition or deletion or change to a corresponding common block, each common block and delta block being ass
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (28)
Non-Patent Literature (5)
- "Configuration Management with Version Sets", Andreas Zeller, Apr. 1997, Technische Universitat Braunschweig.
- "Rational ClearCase, Developing Software, Windows Edition," Version 2002.05.00 and later, Rational Software Corporation, Section 5.3, pp. 69-81.
- "Syntactic Software Merging", Jim Buffenbarger, Boise State University.
- "Version Management with CVS," for CVS 1.11.18, Per Cederqvist et al., 2004, Sections 10.2 and 10.3, pp. 64-67.
- A. Garrido and R. Johnson, "Handling Preprocessor Macros in Refactoring," ACM SIGPLAN Conference on Programming Language Design and Implementation, 2004.