Description
This is a sub-task of OAK-1981 to clean up orphaned branches.
Branch commits may not get merged because of conflicts and are currently not garbage collected. OAK-1926 cleans up the branch commit information on restart on the root document, but it does not remove the changes on the affected documents.