mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user