2 ################################################################################
4 # File: $RCSfile: git,v $
5 # Revision: $Revision: 1.0 $
6 # Description: This script set up some useful environment variables and aliases
7 # for git execution. File should be sourced (e.g . git)
8 # Author: Andrew@DeFaria.com
9 # Created: Thu Nov 7 18:00:34 PST 2013
13 # (c) Copyright 2000-2013, ClearSCM, Inc., all rights reserved.
15 ################################################################################
16 function in_git_repo {
19 while [ "$pwd" != "/" -a "$pwd" != "//" ]; do
20 if [ -d "$pwd/.git" ]; then
32 # Need to reset title since we put the branch name in the titlebar
35 if [ "$1" = "checkout" -o "$1" = "co" ]; then