third_party/blink/tools/blinkpy/common/checkout/git.py
def create_patch(self, git_commit=None, changed_files=None):
        """Returns a byte array (str) representing the patch file.

        Patch files are effectively binary since they may contain
        files of multiple different encodings.
        """
        command = [
            'diff',
            '--binary',
            '--no-color',
            '--no-ext-diff',
            '--full-index',
            '-M',
            '--src-prefix=a/',
            '--dst-prefix=b/',
        ]
        command += [self._merge_base(git_commit), '--']
        if changed_files:
            command += changed_files
        return self.run(command, decode_output=False, cwd=self.checkout_root)
Returns a byte array (str) representing the patch file.

        Patch files are effectively binary since they may contain
        files of multiple different encodings.
        
Returns a byte array (str) representing the patch file.
Patch files are effectively binary since they may contain
files of multiple different encodings.
Returns a byte array ( str ) representing the patch file . Patch files are effectively binary since they may contain files of multiple different encodings .
def create_patch(self, git_commit=None, changed_files=None):
        command = [
            'diff',
            '--binary',
            '--no-color',
            '--no-ext-diff',
            '--full-index',
            '-M',
            '--src-prefix=a/',
            '--dst-prefix=b/',
        ]
        command += [self._merge_base(git_commit), '--']
        if changed_files:
            command += changed_files
        return self.run(command, decode_output=False, cwd=self.checkout_root)
def create_patch ( self , git_commit = None , changed_files = None ) : command = [ 'diff' , '--binary' , '--no-color' , '--no-ext-diff' , '--full-index' , '-M' , '--src-prefix=a/' , '--dst-prefix=b/' , ] command += [ self . _merge_base ( git_commit ) , '--' ] if changed_files : command += changed_files return self . run ( command , decode_output = False , cwd = self . checkout_root )
Returns a byte array (str) representing the patch file.
Returns a byte array ( str ) representing the patch file .
"""Returns a byte array (str) representing the patch file.

        Patch files are effectively binary since they may contain
        files of multiple different encodings.
        """
self
git_commit
changed_files