# Functions
FetchAndMergeSHAs merges any SHAs into the baseBranch which has a tip of baseSha, fetching the commits from remote for the git repo in dir.
LocalBranches will list all local branches.
NewCmdGitMerge creates a command object for the command.
ParsePullRefs parses the Prow PULL_REFS env var formatted string and converts to a map of branch:sha.
ToRegexOrNil returns a regex for non-blank strings or returns an error if it cannot be parsed.