I have the following two variants of a (96 file) code, and the ONLY differences between them are in brackets:
- DOUBLE-PRECIION ( every variable is defined as REAL*8 and every number is defined like 1234D+02 )
- QUADRUPLE-PRECISION ( every variable is defined as REAL*16 and every number is defined like 1234Q+02 )
If I every change anything in the software, I want this change to be consistent in both of the above variants of the code.
In Git(Hub), should I:
- Build a separate repository (how am I going to easily merge changes ?),
- Build a different branch (but branching seems to be best for when all code is to merge),
- Build a fork (but this seems to be for people that can't push to the main branch) ?
Here are some questions that are related, but not what I want. I've written why I haven't swallowed their answers:
- maintain different versions of the code simultaneously using git: Tobu's answer says "git cherry-pick may not work in many cases"
- managing multiple versions of a web application using git: suggests git submodules but there's reasons not to.
- Keeping track of source code variants: suggests using #define , but is there a FORTRAN equivalent ?
- How to track two version of a project in one GIT repository?: suggests a 3rd branch for "common" code, but I don't see the benefit of having more than 2. And would I not need to use git cherry-pick here ?