[yocto] [[AUH] 11/17] utils/git.py: Add method for apply patches into a branch.

Aníbal Limón anibal.limon at linux.intel.com
Wed Nov 25 16:00:40 PST 2015


Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
 modules/utils/git.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/utils/git.py b/modules/utils/git.py
index 48ed46d..d7f5713 100644
--- a/modules/utils/git.py
+++ b/modules/utils/git.py
@@ -61,6 +61,9 @@ class Git(object):
     def create_patch(self, out_dir):
         return self._cmd("format-patch -M10 -1 -o " + out_dir)
 
+    def apply_patch(self, patch_file):
+        return self._cmd("am %s" % patch_file)
+
     def status(self):
         return self._cmd("status --porcelain")
 
-- 
2.1.4




More information about the yocto mailing list