Add file type change to git diff-tree regexp

Fixes Homebrew/homebrew#24286.
This commit is contained in:
Jack Nagel 2013-11-14 09:24:28 -06:00
parent fbb7d80a32
commit f41e1a3b83

View File

@ -123,7 +123,7 @@ class Updater
end
# Matches raw git diff format (see `man git-diff-tree`)
DIFFTREE_RX = /^:[0-7]{6} [0-7]{6} [0-9a-fA-F]{40} [0-9a-fA-F]{40} ([ACDMR])\d{0,3}\t(.+?)(?:\t(.+))?$/
DIFFTREE_RX = /^:[0-7]{6} [0-7]{6} [0-9a-fA-F]{40} [0-9a-fA-F]{40} ([ACDMRT])\d{0,3}\t(.+?)(?:\t(.+))?$/
def report
map = Hash.new{ |h,k| h[k] = [] }