From: Graham Knop Date: Sat, 14 Mar 2015 21:06:48 +0000 (-0400) Subject: bump should only check for staged changes, not output diff X-Git-Tag: v0.002000~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=176acdb4ab02a4618006bac38124bd83d825ccd6;p=p5sagit%2FDistar.git bump should only check for staged changes, not output diff --- diff --git a/helpers/bump-version b/helpers/bump-version index f27db0d..6b60641 100755 --- a/helpers/bump-version +++ b/helpers/bump-version @@ -17,7 +17,7 @@ warn "Bumping $old_version -> $new_decimal\n"; my %files; if ($git) { - if (system "git diff --cached HEAD") { + if (system "git diff --quiet --cached HEAD") { die "Staged changes!\n"; } for (`git ls-files`) {