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.107 bin/dm_repo_clean.sh
docman-0.0.106 bin/dm_repo_clean.sh
docman-0.0.105 bin/dm_repo_clean.sh
docman-0.0.104 bin/dm_repo_clean.sh
docman-0.0.103 bin/dm_repo_clean.sh
docman-0.0.102 bin/dm_repo_clean.sh
docman-0.0.101 bin/dm_repo_clean.sh
docman-0.0.100 bin/dm_repo_clean.sh
docman-0.0.99 bin/dm_repo_clean.sh
docman-0.0.98 bin/dm_repo_clean.sh
docman-0.0.97 bin/dm_repo_clean.sh
docman-0.0.96 bin/dm_repo_clean.sh
docman-0.0.95 bin/dm_repo_clean.sh
docman-0.0.94 bin/dm_repo_clean.sh
docman-0.0.93 bin/dm_repo_clean.sh
docman-0.0.92 bin/dm_repo_clean.sh
docman-0.0.91 bin/dm_repo_clean.sh
docman-0.0.90 bin/dm_repo_clean.sh
docman-0.0.89 bin/dm_repo_clean.sh
docman-0.0.88 bin/dm_repo_clean.sh