output required branches text file