diff options
| author | Simon Glass <sjg@chromium.org> | 2012-12-15 10:42:04 +0000 | 
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2013-04-04 14:04:33 -0700 | 
| commit | a10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731 (patch) | |
| tree | 738c8809d2a150bd507a8c0b0b27474e854042ee /tools/patman/gitutil.py | |
| parent | 71162e3cae29832192497d4a1b966336b638df01 (diff) | |
| download | olio-uboot-2014.01-a10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731.tar.xz olio-uboot-2014.01-a10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731.zip | |
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.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py index ca3ba4a03..77907c15c 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 |