#!/usr/bin/env bash
## Prints the current branch name in automation-friendly format.
## Source: git-extra-commands

#
# Copy the current branch name to stdout for use in automation

branch=$(git rev-parse --abbrev-ref HEAD)

echo "$branch" | tr -d '\n' | tr -d ' '
