From 289d03e1c8a859328990899eb8941344192f9ee1 Mon Sep 17 00:00:00 2001 From: "phajdan.jr" Date: Tue, 16 Aug 2016 08:21:06 -0700 Subject: [PATCH] git-cl status: allow querying just the status of current CL BUG=620494 Review-Url: https://codereview.chromium.org/2252473004 --- git_cl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git_cl.py b/git_cl.py index 41bbb9800e..c03d6103d7 100755 --- a/git_cl.py +++ b/git_cl.py @@ -3271,7 +3271,7 @@ def CMDstatus(parser, args): Also see 'git cl comments'. """ parser.add_option('--field', - help='print only specific field (desc|id|patch|url)') + help='print only specific field (desc|id|patch|status|url)') parser.add_option('-f', '--fast', action='store_true', help='Do not retrieve review status') parser.add_option( @@ -3296,6 +3296,8 @@ def CMDstatus(parser, args): patchset = cl.GetPatchset() if patchset: print(patchset) + elif options.field == 'status': + print(cl.GetStatus()) elif options.field == 'url': url = cl.GetIssueURL() if url: