~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use the default git colouring scheme rather than specific scripts
[stgit]
/
stgit
/
commands
/
diff.py
diff --git
a/stgit/commands/diff.py
b/stgit/commands/diff.py
index
568651c
..
a6cd013
100644
(file)
--- a/
stgit/commands/diff.py
+++ b/
stgit/commands/diff.py
@@
-68,6
+68,8
@@
def func(parser, options, args):
rev1 = 'HEAD'
rev2 = None
+ if not options.stat:
+ options.diff_flags.extend(color_diff_flags())
diff_str = git.diff(args, git_id(crt_series, rev1),
rev2 and git_id(crt_series, rev2),
diff_flags = options.diff_flags)