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
#!/usr/bin/env bash | |
# --------------------------------------------------------------------------- # # Functions # --------------------------------------------------------------------------- # # git repository info (like svn info) function info() { | |
#[ -z ${1} ] && fail "${FUNCNAME}: REPOSITORY DIR not set" 1 | |
#pushd ${1} >/dev/null | |
# Find base of git directory | |
#while [ ! -d .git ] && [ ! `pwd` = "/" ]; do cd ..; done | |
# Show various information about this git directory | |
if [ -d .git ]; then |