Skip to content

Instantly share code, notes, and snippets.

@kmerenkov
Created August 4, 2010 04:53
Show Gist options
  • Save kmerenkov/507660 to your computer and use it in GitHub Desktop.
Save kmerenkov/507660 to your computer and use it in GitHub Desktop.
Colorful output from bzr grep plugin
=== modified file '__init__.py'
--- __init__.py 2008-01-20 20:07:02 +0000
+++ __init__.py 2010-08-04 04:51:49 +0000
@@ -141,11 +141,11 @@
# bzr grep foo -- -i file
# and pass the -i through to grep.
+ files = []
+ options = [u'--color=always']
+
if list is None:
- return [], []
-
- files = []
- options = []
+ return options, files
while len(list) > 0:
item = list.pop(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment