Sha256: 0843ef8d2a7b8816a9d767140adf89174c271df3a1b26b025fbb44ab1b91a0ef

Contents?: true

Size: 414 Bytes

Versions: 105

Compression:

Stored size: 414 Bytes

Contents

#!/bin/sh

#
# Check if git directory has no changes.
#
cd $1

git rev-parse --verify HEAD >/dev/null || echo 1
git update-index -q --ignore-submodules --refresh

err=0

if ! git diff-files --quiet --ignore-submodules
then
  err=1
fi

if ! git diff-index --cached --quiet --ignore-submodules HEAD --
then
  err=1
fi

test -z "$(git status --porcelain)" || err=1

if [ ${err} = "1" ]
then
  echo ${err}
  exit 1
fi

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
docman-0.0.7 bin/dm_repo_clean.sh
docman-0.0.6 bin/dm_repo_clean.sh
docman-0.0.5 bin/dm_repo_clean.sh
docman-0.0.4 bin/dm_repo_clean.sh
docman-0.0.3 bin/dm_repo_clean.sh