So I have a few private git repositories that are different language implementations (Python, Java, etc.) of an algorithm. Each implementation is functionally identical, performing the same steps and giving the same output. Currently, these are separate repos, but I was wondering if I shouldn't unify them into one repo, with directories indicating the language, like:
Eventually I decided to split it into separate repositories (even though the Python implementation included a C extension that had similar code to the plain C implementation). My reasoning came down to:
git describeis a nice feature to identify a version based on the latest annotated tag. With just one implementation in the repository,
git describeusage is simple. But if different implementations with separate version numbers are in the one repository, then
git describeusage becomes more complicated, needing use of the
--matchoption to limit to tags with a given prefix. e.g.
git describe --match "python*"