expose merge metadata cleanup
Merge pull request #1185 from ethomson/cleanup_merge

expose merge metadata cleanup