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