#!/usr/bin/env bash # Simple wrapper for getting the current branch on a git repo. . llvm-common if is_git > /dev/null 2>&1; then get_branch else echo "You're not in a git repository" exit 1 fi