The Problem
I'm migrating a legacy CVS repo into Git, and have run into a problem with our planned strategy involving subtrees.
We're developing several different products that, in some cases, share a common library that we're also developing. I'm going to put each product in its own git repo, since they go through their own independent development lifecycles.
For using the common library, I was planning on having that in a separate repo as well, and then pulling the library into the products that need them using subtrees. Our problem is that different products will pull in different versions of the library.
I can link the subtree to a specific tag or branch, no problem, but then how do other developers know what tag/branch I used when they clone the repo and re-link the subtree?
The Example
We're developing the Guncho product in the Guncho repo.
I link it to the Filfre library against the tag v2.1
using subtree.
git subtree add --prefix=filfre ssh://stephen@gitserver:filfre v2.1
Then my co-worker Jane clones the Guncho repo to help out on it.
git clone ssh://jane@gitserver:guncho
Is there any way she can know to re-link the filfre
subtree to the v2.1
tag short of me telling her?