|
@@ -337,12 +337,15 @@ class GitApplyTree(PatchTree):
|
|
|
return (tmpfile, cmd)
|
|
|
|
|
|
@staticmethod
|
|
|
- def extractPatches(tree, startcommit, outdir):
|
|
|
+ def extractPatches(tree, startcommit, outdir, paths=None):
|
|
|
import tempfile
|
|
|
import shutil
|
|
|
tempdir = tempfile.mkdtemp(prefix='oepatch')
|
|
|
try:
|
|
|
shellcmd = ["git", "format-patch", startcommit, "-o", tempdir]
|
|
|
+ if paths:
|
|
|
+ shellcmd.append('--')
|
|
|
+ shellcmd.extend(paths)
|
|
|
out = runcmd(["sh", "-c", " ".join(shellcmd)], tree)
|
|
|
if out:
|
|
|
for srcfile in out.split():
|