diff options
| author | Mike McQuaid | 2014-03-08 01:19:20 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-08 01:19:20 +0000 |
| commit | 3c4da82ee97a7490926c90bd58f1bb26c6c3a5c0 (patch) | |
| tree | 1c6ccc0b867331e502b9fc77be7baa6cf77026a3 /Library | |
| parent | 52658e793a591f76b3cbf3884e044f9dba7c5095 (diff) | |
| download | brew-3c4da82ee97a7490926c90bd58f1bb26c6c3a5c0.tar.bz2 | |
pull: add --bump option.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-pull.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Contributions/cmd/brew-pull.rb b/Library/Contributions/cmd/brew-pull.rb index db3c68d0f..84342ed55 100755 --- a/Library/Contributions/cmd/brew-pull.rb +++ b/Library/Contributions/cmd/brew-pull.rb @@ -97,6 +97,14 @@ ARGV.named.each do |arg| ohai "Patch closes issue ##{issue}" message = `git log HEAD^.. --format=%B` + if ARGV.include? '--bump' + onoe 'Can only bump one changed formula' unless changed_formulae.length == 1 + f = changed_formulae.first + subject = "#{f.name} #{f.version}" + ohai "New bump commit subject: #{subject}" + message = "#{subject}\n\n#{message}" + end + # If this is a pull request, append a close message. unless message.include? 'Closes #' message += "\nCloses ##{issue}." |
