Merge pull request #28 from RobinWijnant/master

Add --quiet flag to git diff
This commit is contained in:
Federico Grandi
2020-05-01 11:08:07 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ remove
echo "Checking for uncommitted changes in the git working tree..."
# This section only runs if there have been file changes
if ! git diff --cached --exit-code; then
if ! git diff --cached --quiet --exit-code; then
git_setup
git fetch

View File

@@ -36,7 +36,7 @@ remove
echo "Checking for uncommitted changes in the git working tree..."
# This section only runs if there have been file changes
if ! git diff --cached --exit-code; then
if ! git diff --cached --quiet --exit-code; then
git_setup
git fetch