Index: tools/push-to-trunk/git_recipes.py |
diff --git a/tools/push-to-trunk/git_recipes.py b/tools/push-to-trunk/git_recipes.py |
index f5a231599e255d00675e7b926a45ec33a9ed1053..088ba53bd806bdbae83e52590b44962493854b4c 100644 |
--- a/tools/push-to-trunk/git_recipes.py |
+++ b/tools/push-to-trunk/git_recipes.py |
@@ -72,7 +72,7 @@ class GitRecipesMixin(object): |
@Strip |
def GitLog(self, n=0, format="", grep="", git_hash="", parent_hash="", |
- branch="", reverse=False, patch=False): |
+ branch="", reverse=False): |
assert not (git_hash and parent_hash) |
args = ["log"] |
if n > 0: |
@@ -83,8 +83,6 @@ class GitRecipesMixin(object): |
args.append("--grep=\"%s\"" % grep) |
if reverse: |
args.append("--reverse") |
- if patch: |
- args.append("-p") |
if git_hash: |
args.append(git_hash) |
if parent_hash: |
@@ -92,6 +90,10 @@ class GitRecipesMixin(object): |
args.append(branch) |
return self.Git(MakeArgs(args)) |
+ def GitGetPatch(self, git_hash): |
+ assert git_hash |
+ return self.Git(MakeArgs(["log", "-1", "-p", git_hash])) |
+ |
def GitAdd(self, name): |
assert name |
self.Git(MakeArgs(["add", Quoted(name)])) |