aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-08-21 12:33:33 +0800
committerXu Cheng2015-08-21 20:08:13 +0800
commitd09d2690caf26d913cb6b9a62faf24397ef6c2a0 (patch)
treeeb8196f0022f110e6652218a0b85d55e4ccb8f37 /Library
parentac713863731b792e45776e990131f8774f5a7f65 (diff)
downloadbrew-d09d2690caf26d913cb6b9a62faf24397ef6c2a0.tar.bz2
tap: add --list-pinned
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/tap.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb
index d171f5461..4942d0327 100644
--- a/Library/Homebrew/cmd/tap.rb
+++ b/Library/Homebrew/cmd/tap.rb
@@ -8,7 +8,9 @@ module Homebrew
migrate_taps :force => true
elsif ARGV.first == "--list-official"
require "official_taps"
- puts OFFICIAL_TAPS.map { |t| "homebrew/#{t}" } * "\n"
+ puts OFFICIAL_TAPS.map { |t| "homebrew/#{t}" }
+ elsif ARGV.first == "--list-pinned"
+ puts Tap.select(&:pinned?).map(&:name)
else
user, repo = tap_args
clone_target = ARGV.named[1]