As you might have known that by default, git doesn't enable reflog updates for new bare repositories. The problem is, I have a long history repository but it was created before I set the flag "logAllRefUpdates" on, and now I want that information for another application to work.
How can I achieve that with minimal changes made to the existing repository. A very simple solution is pushing a new commit which I don't want to (!) :-)
The reflog is a relatively simple file format. Here's an example:
You can manually construct appropriate reflogs by following the same format:
Just create one of these for each ref. You can probably do this directly with
git for-each-ref
with an appropriate format string (thanks, Chris!)