#!/usr/bin/bash

# DESCRIPTION:
#
# Find out if a repo is dirty. Accepts an optional path to check for dirtiness.
#
# env: GIT_ROOT

cd "$GIT_ROOT"

/usr/bin/git status --porcelain -uno "${1-$GIT_ROOT}"
