From f4cfb9ee87788dca0c0ca8e90bf0d17c43f1706e Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sun, 4 Sep 2016 11:25:00 -0700 Subject: [PATCH] bump-formula-pr: add --write option intended to be used in combination with --dry-run for a not-so-dry run the expected file modifications are made, but no git actions are taken --- Library/Homebrew/dev-cmd/bump-formula-pr.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index a38d6edb59..4ad2307038 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -38,6 +38,7 @@ module Homebrew unless contents.errors.empty? raise Utils::InreplaceError, path => contents.errors end + path.atomic_write(contents) if ARGV.include?("--write") contents else Utils::Inreplace.inreplace(path) do |s|