From 6baf357f8c196dcf26cc3f4a877bd992dbb55e3a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 25 Jul 2014 10:42:47 -0500 Subject: update: remove unused rename detection Right now this code only produces false positives. When we have real support for renames, we can implement it more carefully. Closes Homebrew/homebrew#31126. --- Library/Homebrew/cmd/update.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index 5fe9341af..5addb4375 100644 --- a/Library/Homebrew/cmd/update.rb +++ b/Library/Homebrew/cmd/update.rb @@ -172,12 +172,8 @@ class Updater map = Hash.new{ |h,k| h[k] = [] } if initial_revision && initial_revision != current_revision - `git diff-tree -r --name-status -M85% #{initial_revision} #{current_revision}`.each_line do |line| - status, path, renamed = line.split - if renamed - status = status[0, 1] - path = renamed - end + `git diff-tree -r --name-status --diff-filter=AMD #{initial_revision} #{current_revision}`.each_line do |line| + status, path = line.split map[status.to_sym] << repository.join(path) end end @@ -226,7 +222,6 @@ class Report dump_formula_report :A, "New Formulae" dump_formula_report :M, "Updated Formulae" dump_formula_report :D, "Deleted Formulae" - dump_formula_report :R, "Renamed Formulae" end def tapped_formula_for key -- cgit v1.2.3