aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-07-25 10:42:47 -0500
committerJack Nagel2014-07-25 12:28:05 -0500
commit6baf357f8c196dcf26cc3f4a877bd992dbb55e3a (patch)
tree2d4406ec577487920473f9d0bb4d9703c084a24f /Library/Homebrew/cmd
parent2cf116464dcdd68c10e8a9e6f918568cf594a588 (diff)
downloadbrew-6baf357f8c196dcf26cc3f4a877bd992dbb55e3a.tar.bz2
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.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/update.rb9
1 files changed, 2 insertions, 7 deletions
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