4697: rbt patch --exclude flag


What version are you running?


Describe the enhancement and the motivation for it.

Add an --exclude flag to rbt patch with behavior similar to git apply --exclude. Currently, RBs containing diffs denoted as binary files are unpatchable via rbt patch, and a workaround is to download the patch file and apply it through git apply --exclude <binary file> <patch>. The motivation is to allow this same use case through RBTools, such as rbt patch --exclude <file> <RB ID>.

Please provide any additional information below.