I have what is probably an uncommon problem. A friend and I have just resurrected a text editor from the very early days of UNIX (the RAND editor, first written in the mid-1970s). It now runs fine on Mac, Linux, and Windows (using a Linux VM).
However, we then proceeded to introduce mouse support and text highlighting into the forward-ported editor, which originally supported neither: the terminals of those days didn’t have mice and didn’t support highlighting.
The “mouse” version of the editor is developed strictly from the “nomouse” version. I want to make both versions available, the first for those people (and apparently there are some!) who want to be able to use this editor again, and the second for students of editor history. The “nomouse” version would also be useful to people who can’t get the mouse and/or highlighting support to work on their systems for whatever reason. Ncurses is not always your friend, we find.
Before stumbling my way down a Git-lined rathole, I’d like to ask for a judgement by the experts on what path would be best to follow:
Put two separate directories up at the root of the repository, one for each version. This has the merit of simplicity but elides the fact that one is developed from the other.
Put up the “nomouse” version first, give it an annotated tag, and then put up the “mouse” version as a commit to that branch.
Start a branch right at an empty repository with just a “README.md” file, and commit one version to each branch.
Some other blazingly obvious and superior tactic that this newbie hasn’t thought of.