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