From 3acdefa9aad9d0bf7bb601b44d22e00cf8661363 Mon Sep 17 00:00:00 2001 From: Henrique Ferreiro Date: Fri, 22 Feb 2019 10:09:07 +0000 Subject: [PATCH] Omit "Skipping " message when unneeded When calling `git rebase-update `, don't emit messages about skipping branches which are not in the list of branches to be rebased. R=iannucci@chromium.org Change-Id: Ia5135d2e794646aaec68bca1aa64f4a73c98c186 Reviewed-on: https://chromium-review.googlesource.com/c/1476394 Commit-Queue: Robbie Iannucci Reviewed-by: Robbie Iannucci --- git_rebase_update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git_rebase_update.py b/git_rebase_update.py index e6cc930be6..4af4bbd74f 100755 --- a/git_rebase_update.py +++ b/git_rebase_update.py @@ -258,6 +258,8 @@ def main(args=None): git.freeze() # just in case there are any local changes. skipped, branch_tree = git.get_branch_tree() + if opts.branches: + skipped = set(skipped).intersection(set(opts.branches)) for branch in skipped: print 'Skipping %s: No upstream specified' % branch