From 08c9987b3856ae460f862c22d1fd50f3da414a16 Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Sat, 19 Dec 2015 09:42:09 -0500 Subject: [PATCH] symlink git_current_branch to git-branch-current --- modules/git/functions/git-branch-current | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) mode change 100644 => 120000 modules/git/functions/git-branch-current diff --git a/modules/git/functions/git-branch-current b/modules/git/functions/git-branch-current deleted file mode 100644 index 944ffe2..0000000 --- a/modules/git/functions/git-branch-current +++ /dev/null @@ -1,20 +0,0 @@ -# -# Displays the current Git branch. -# -# Authors: -# Sorin Ionescu -# - -if ! git rev-parse 2> /dev/null; then - print "$0: not a repository: $PWD" >&2 - return 1 -fi - -local ref="$(git symbolic-ref HEAD 2> /dev/null)" - -if [[ -n "$ref" ]]; then - print "${ref#refs/heads/}" - return 0 -else - return 1 -fi diff --git a/modules/git/functions/git-branch-current b/modules/git/functions/git-branch-current new file mode 120000 index 0000000..4b844e9 --- /dev/null +++ b/modules/git/functions/git-branch-current @@ -0,0 +1 @@ +git_current_branch \ No newline at end of file