Created
December 12, 2012 07:56
-
-
Save tmikoss/4265939 to your computer and use it in GitHub Desktop.
Capistrano: work with current branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function git-current-branch { | |
git branch 2>/dev/null | grep -e '^*' | sed -E 's/^\* (.+)$/\1 /' | |
} | |
function cap-current { | |
cap -s branch=git-current-branch $* | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment