Lines Matching refs:patchfile
114 def getPatchedFiles(patchfile, striplevel, srcdir=None): argument
132 bb.error('Patch %s has invalid strip level %d' % (patchfile, striplevel))
140 with open(patchfile) as f:
179 raise PatchError('Unable to decode %s' % patchfile)
322 def extractPatchHeader(patchfile): argument
329 with open(patchfile, 'r', encoding=encoding) as f:
338 raise PatchError('Unable to find a character encoding to decode %s' % patchfile)
416 def prepareCommit(patchfile, commituser=None, commitemail=None): argument
423 lines = GitApplyTree.extractPatchHeader(patchfile)
427 … shellcmd = ["git", "log", "--format=email", "--follow", "--diff-filter=A", "--", patchfile]
428 out = runcmd(["sh", "-c", " ".join(shellcmd)], os.path.dirname(patchfile))