Add subrepo support to tree script
Add perltidyrc