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
function ldock() { | |
# Find the root of the repo. Redirect stderr as if we are not | |
# under a repo an error will occur. | |
REPO_ROOT=`git rev-parse --show-toplevel 2> /dev/null` | |
if [ "$REPO_ROOT" == "" ]; then | |
echo "You must run this command from within a git repo." | |
return 1 | |
fi |