diff options
| author | Jack Nagel | 2014-07-25 10:42:47 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-25 12:28:05 -0500 |
| commit | 87b4b6fb7d2b2921371da53a9407ee93c04d2b31 (patch) | |
| tree | c64a9d3ea0c16f9e2c4576486d5e3af62d884a20 /Library/Homebrew/cmd | |
| parent | 432181671c6f82f2525a313cd1fa89ab8d60d609 (diff) | |
| download | homebrew-87b4b6fb7d2b2921371da53a9407ee93c04d2b31.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 #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 |
