From 89b5ee6295fbd399e4aabf186354fb29a36d9424 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Wed, 19 Dec 2012 12:42:44 -0800 Subject: [PATCH] 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. --- Library/Contributions/cmds/brew-pull.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Contributions/cmds/brew-pull.rb b/Library/Contributions/cmds/brew-pull.rb index 8f359dab34..a724614689 100755 --- a/Library/Contributions/cmds/brew-pull.rb +++ b/Library/Contributions/cmds/brew-pull.rb @@ -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|