modules/tmx: added new function t_reuse_branch()