Added functions to translate between local and remote branch formats