Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: git_map_branches.py

Issue 1832973002: Don't highlight branches named 'origin-foo' (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_map_branches.py
diff --git a/git_map_branches.py b/git_map_branches.py
index cd43900597e16758610c39b6d6cd5446efabd492..6105f5e8757359fc4a15b0acbc469244e7ba5964 100755
--- a/git_map_branches.py
+++ b/git_map_branches.py
@@ -174,7 +174,7 @@ class BranchMapper(object):
return not parent or parent in self.__gone_branches
def __color_for_branch(self, branch, branch_hash):
- if branch.startswith('origin'):
+ if branch.startswith('origin/'):
color = Fore.RED
elif branch.startswith('branch-heads'):
color = Fore.BLUE
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698