This file contains 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFiXMdoBEADUIVx4nj3d26cTljNnQ9yc9pMuhozs8EAHpvudbQCWtf531qa5 | |
UJ5Z9zqAF38qUV7q+d4A53HzEFJemufBXNntxZLH+5gzqjoqOyAhTc9lBNPzoeuP | |
qcdSg03mOfRYNOSVNG5JaD4lZ11Zg27zjwGGeKZKhs2WaI0dIzsaBq6KFMmL2UzX | |
LGAlgh8n6PeBx+0iPw/Pw5miEwMGK7JRxLArWMV+gdtv6feSGOURu5jBB6dHBboF | |
jiV0gDCLu/A/GvQ8Ii1KGvOnHmS6WRqkFTE4uuUlGeRJ0UURrgHenNnNPl2Q3qZp | |
v9jrHk6EMK+9GV8erR8U86YSla7wbytPRrQ/Y6NujZa9pGeXUtHTSlBAoL+0IEAa | |
hiRQmwi0bB7HaV2zbOZzknL+KapOv1wejrsWxCqXi5ZDcSqtXrM2fPTsQ/vvVoju | |
16Ao6K77M8l+e4edqzjMR25cv4jny/5j26bLuq/rzMsqoWLZGKfYqCOw9Y++ORF/ |
This file contains 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
git_current_branch () { | |
local ref | |
ref=$(command git symbolic-ref --quiet HEAD 2> /dev/null) | |
local ret=$? | |
if [[ $ret != 0 ]] | |
then | |
[[ $ret == 128 ]] && return | |
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return | |
fi | |
echo ${ref#refs/heads/} |