blob: 6ff2cc3fabd9d6e2da7b091ad3fa803ab2171e25 [file] [log] [blame]
Renato Golin94cc1042016-04-26 11:02:23 +01001#!/usr/bin/env bash
2
3# Simple wrapper for getting the current branch on a git repo.
4
5. llvm-common
6
7if is_git > /dev/null 2>&1; then
8 get_branch
9else
10 echo "You're not in a git repository"
11 exit 1
12fi