This gist includes scripts used to clean up the proj.4 git repository.
generate_comment_refs.py
determines the tickets and comments that reference to SHA1 hashes.refs
is a list of (ticket number, comment ID, count, commit hash) from above.proj4-clean.sh
clones the original repo, flattens the structure, and removes extra commits. The hashes noted in the previous step are converted to the new commit hashes.newrefs
is a list of (ticket number, comment ID, count, old commit hash, new commit hash) from above.update_comment_refs.py
takesnewrefs
and updates the tickets on GitHub.