Given the hash of a blob object (that may have been taken in a former revision), how is it possible to find
- the history and
- the path of the corresponding file in the current revision?
Some details as for the use case:
We use a git repository to store files that are part of document generation.
The files change over time (hence the repo ;) ). The documents are kept and refer to the files in the repo.
For consistency, the saved documents will reference the file version at the timepoint where the document was created.
So I thought keeping the object hash should be adequate, as this precisely identifies which file version was used.
However, I now face following problem : I want to propose to upgrade the document to newer versions of the files. So I have to
- find out whether there are new versions
- because the document generation occurs with command line tools, I need the current location of the file in the filesystem (may have been renamed or moved).
I still couldn't find any easy way to achieve this. Is there any, or should I reconsider my way of keeping track of the composited files?