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

Unified Diff: git_common.py

Issue 536793002: Skip tracking status in map-branches when -v flag is not supplied. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 3 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 | git_map_branches.py » ('j') | git_map_branches.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_common.py
diff --git a/git_common.py b/git_common.py
index 31a62b89043adae8f24da15f88205b0e7083538b..2497e93458cbae92f5209fec6eaba4d149014a15 100644
--- a/git_common.py
+++ b/git_common.py
@@ -733,12 +733,13 @@ def get_git_version():
return tuple(int(x) for x in version.split('.'))
-def get_all_tracking_info():
+def get_all_tracking_info(include_tracking_status=True):
Matt Giuca 2014/09/03 03:21:55 Don't set a default here. There isn't a "correct"
calamity 2014/09/03 04:38:53 Done.
format_string = (
'--format=%(refname:short):%(objectname:short):%(upstream:short):')
# This is not covered by the depot_tools CQ which only has git version 1.8.
- if get_git_version() >= MIN_UPSTREAM_TRACK_GIT_VERSION: # pragma: no cover
+ if (include_tracking_status and
+ get_git_version() >= MIN_UPSTREAM_TRACK_GIT_VERSION): # pragma: no cover
format_string += '%(upstream:track)'
info_map = {}
« no previous file with comments | « no previous file | git_map_branches.py » ('j') | git_map_branches.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698