3 # Set up GIT_DIR and GIT_OBJECT_DIRECTORY
4 # and return true if everything looks ok
7 : ${GIT_OBJECT_DIRECTORY="$GIT_DIR/objects"}
15 dirty1_
=`git-update-index -q --refresh` && {
16 dirty2_
=`git-diff-index --name-only --cached HEAD`
17 case "$dirty2_" in '') : ;; *) (exit 1) ;; esac
20 echo "$dirty2_" |
sed >&2 -e 's/^/modified: /'
25 [ -h "$GIT_DIR/HEAD" ] &&
26 [ -d "$GIT_DIR/refs" ] &&
27 [ -d "$GIT_OBJECT_DIRECTORY/00" ]