blink-dev,
"git cl patch [issue#]" is useful for applying patches locally and I use it all the time when reviewing patches or moving patches between computers. Sadly, this script has a limitation where it cannot apply patches that contain image/binary files, such as LayoutTest image expectations. Today I discovered a secret** script that can patch a CL with binary files:
(from [chromium root]/src):
Happy patching!
** Should we let folks know about this secret script? All our docs reference "git cl patch" without mentioning the image file limitation. If nobody pipes up with a better approach, I'll go ahead and update the docs to mention this.
The error message you get when applying a patch with binary files using git cl patch is:
fatal: git diff header lacks filename information when removing 0 leading pathname components
Failed to apply the patch