summaryrefslogtreecommitdiff
path: root/tools/patman/gitutil.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-15 10:42:04 +0000
committerSimon Glass <sjg@chromium.org>2013-04-04 14:04:33 -0700
commita10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731 (patch)
tree738c8809d2a150bd507a8c0b0b27474e854042ee /tools/patman/gitutil.py
parent71162e3cae29832192497d4a1b966336b638df01 (diff)
downloadu-boot-imx-a10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731.zip
u-boot-imx-a10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731.tar.gz
u-boot-imx-a10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731.tar.bz2
patman: Make command methods return a CommandResult
Rather than returning a list of things, return an object. That makes it easier to access the returned items, and easier to extend the return value later. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/gitutil.py')
-rw-r--r--tools/patman/gitutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py
index ca3ba4a..77907c1 100644
--- a/tools/patman/gitutil.py
+++ b/tools/patman/gitutil.py
@@ -40,7 +40,7 @@ def CountCommitsToBranch():
"""
pipe = [['git', 'log', '--no-color', '--oneline', '@{upstream}..'],
['wc', '-l']]
- stdout = command.RunPipe(pipe, capture=True, oneline=True)
+ stdout = command.RunPipe(pipe, capture=True, oneline=True).stdout
patch_count = int(stdout)
return patch_count