diff options
| author | Jack Nagel | 2014-07-25 10:42:47 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-25 12:28:05 -0500 |
| commit | 6baf357f8c196dcf26cc3f4a877bd992dbb55e3a (patch) | |
| tree | 2d4406ec577487920473f9d0bb4d9703c084a24f /Library/Homebrew/cmd | |
| parent | 2cf116464dcdd68c10e8a9e6f918568cf594a588 (diff) | |
| download | brew-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.rb | 9 |
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 |
