I use SHA1 hashes of my commits as links in the documentation, etc. I realized that if I need to rewrite these commits, I need to create a lookup table that matches the hashes for the original repo with the hashes for the filtered repo. Since this is effectively a UUID, a simple lookup table will do.
I think it's relatively simple to write a script for this during the filter-branch run; which is actually not my question, although if there are some difficulties that complicate the situation, I, of course, would like to hear about them. I am really interested if if there are any tools providing this functionality , or if there is some kind of agreement on where to save the lookup table / what to call it? I would rather not do something in a completely idiosyncratic way.
source share