diff --git a/git_helpers b/git_helpers index 99f2495..2a67093 100755 --- a/git_helpers +++ b/git_helpers @@ -57,6 +57,18 @@ revert_to_commit_before_pull () { } # revert_to_commit_before_pull +git_branch () { + # always relative to a git repository + echo $(git branch -a | grep '*' | awk '{ print $2 }') +} + +git_customer_branch () { + if cd_customer_repository; then + customer_branch=$(git_branch) + cd_home; + echo $customer_branch + fi +} # clone the customer repository in ./workspace. # this is done only once. #