Expose DiffTreeToWorkdir function