diff options
| -rw-r--r-- | meta/lib/oe/patch.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 70cdb1d9c0..3ded5f3601 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py | |||
| @@ -461,6 +461,16 @@ class GitApplyTree(PatchTree): | |||
| 461 | return (tmpfile, cmd) | 461 | return (tmpfile, cmd) |
| 462 | 462 | ||
| 463 | @staticmethod | 463 | @staticmethod |
| 464 | def commitIgnored(subject, dir=None, files=None, d=None): | ||
| 465 | if files: | ||
| 466 | runcmd(['git', 'add'] + files, dir) | ||
| 467 | message = "%s\n\n%s" % (subject, GitApplyTree.ignore_commit_prefix) | ||
| 468 | cmd = ["git"] | ||
| 469 | GitApplyTree.gitCommandUserOptions(cmd, d=d) | ||
| 470 | cmd += ["commit", "-m", message, "--no-verify"] | ||
| 471 | runcmd(cmd, dir) | ||
| 472 | |||
| 473 | @staticmethod | ||
| 464 | def extractPatches(tree, startcommits, outdir, paths=None): | 474 | def extractPatches(tree, startcommits, outdir, paths=None): |
| 465 | import tempfile | 475 | import tempfile |
| 466 | import shutil | 476 | import shutil |
