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

Unified Diff: git_map_branches.py

Issue 1847783002: Multiple improvements to windows bash integration. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Add direct mode and unbuffered 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 | « git_cl.py ('k') | python_runner.sh » ('j') | 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 6105f5e8757359fc4a15b0acbc469244e7ba5964..50b403d4c9637f49a48f549166d57bf5ec541f15 100755
--- a/git_map_branches.py
+++ b/git_map_branches.py
@@ -27,6 +27,7 @@ Branches are colorized as follows:
import argparse
import collections
+import os
import sys
import subprocess2
@@ -271,7 +272,7 @@ class BranchMapper(object):
def main(argv):
- colorama.init()
+ colorama.init(wrap="TERM" not in os.environ)
if get_git_version() < MIN_UPSTREAM_TRACK_GIT_VERSION:
print >> sys.stderr, (
'This tool will not show all tracking information for git version '
« no previous file with comments | « git_cl.py ('k') | python_runner.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698