Skip to content
Snippets Groups Projects
Commit c49e23e7 authored by Jack Nagel's avatar Jack Nagel
Browse files

versions: don't recreate the relative path on each iteration

parent 22e3e6c1
No related branches found
No related tags found
No related merge requests found
......@@ -16,11 +16,12 @@ module Homebrew extend self
if ARGV.include? '--compact'
puts f.versions * " "
else
relative_path = f.pretty_relative_path
f.versions do |version, sha|
print Tty.white.to_s
print "#{version.to_s.ljust(8)} "
print Tty.reset.to_s
puts "git checkout #{sha} #{f.pretty_relative_path}"
puts "git checkout #{sha} #{relative_path}"
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment