I would like to create a copy of a branch history (all the way from the initial commit to the current state, with all the merges, etc), but I need to apply a custom logic at each revision - something like running a get_all_revisions_in_order().map(my_custom_logic).
So if a git repo has just one file in format A, and each revision modifies that one file, I would like to produce another branch that has exactly the same history (i.e. log messages and branching/merging structure), also with just one file, but that file will be in format B. My script would look at each diff in the original file's revisions, and apply the same changes to the file in the new format.