##// END OF EJS Templates
diffstat: use ui.plain() instead of ui.interactive()...
Dan Villiom Podlaski Christiansen -
r10948:61cd6653 stable
parent child Browse files
Show More
@@ -1158,7 +1158,9 b' def diff(ui, repo, *pats, **opts):'
1158 1158 m = cmdutil.match(repo, pats, opts)
1159 1159 it = patch.diff(repo, node1, node2, match=m, opts=diffopts)
1160 1160 if stat:
1161 width = ui.interactive() and util.termwidth() or 80
1161 width = 80
1162 if not ui.plain():
1163 width = util.termwidth()
1162 1164 ui.write(patch.diffstat(util.iterlines(it), width=width,
1163 1165 git=diffopts.git))
1164 1166 else:
General Comments 0
You need to be logged in to leave comments. Login now