brew-pull: Don't pipe diff stats through the pager

Pass the `--no-pager` flag to git when grabbing a diff summary for a patch as
there is no good reason to invoke a pager for ~2-10 lines that the user must
then exit manually.
This commit is contained in:
Charlie Sharpsteen 2012-12-19 12:42:44 -08:00
parent 1e51ccb30d
commit 89b5ee6295

View File

@ -71,7 +71,7 @@ ARGV.named.each do|arg|
end
ohai 'Patch changed:'
safe_system 'git', 'diff', "#{revision}..", '--stat'
safe_system 'git', '--no-pager', 'diff', "#{revision}..", '--stat'
if ARGV.include? '--install'
`git diff #{revision}.. --name-status`.each_line do |line|