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.67 bin/dm_repo_clean.sh
docman-0.0.66 bin/dm_repo_clean.sh
docman-0.0.65 bin/dm_repo_clean.sh
docman-0.0.64 bin/dm_repo_clean.sh
docman-0.0.63 bin/dm_repo_clean.sh
docman-0.0.62 bin/dm_repo_clean.sh
docman-0.0.61 bin/dm_repo_clean.sh
docman-0.0.60 bin/dm_repo_clean.sh
docman-0.0.59 bin/dm_repo_clean.sh
docman-0.0.58 bin/dm_repo_clean.sh
docman-0.0.57 bin/dm_repo_clean.sh
docman-0.0.56 bin/dm_repo_clean.sh
docman-0.0.55 bin/dm_repo_clean.sh
docman-0.0.54 bin/dm_repo_clean.sh
docman-0.0.53 bin/dm_repo_clean.sh
docman-0.0.52 bin/dm_repo_clean.sh
docman-0.0.51 bin/dm_repo_clean.sh
docman-0.0.50 bin/dm_repo_clean.sh
docman-0.0.49 bin/dm_repo_clean.sh
docman-0.0.48 bin/dm_repo_clean.sh