As seen in git-diff man page, file modes are printed as 6-digit octal numbers. I changed the corresponding regexp accordingly.