##// END OF EJS Templates
patch: add a new function to initialize diffopts by feature...
Siddharth Agarwal -
r23430:3821be85 default
parent child Browse files
Show More
@@ -1559,6 +1559,11 b' class GitDiffRequired(Exception):'
1559 pass
1559 pass
1560
1560
1561 def diffopts(ui, opts=None, untrusted=False, section='diff'):
1561 def diffopts(ui, opts=None, untrusted=False, section='diff'):
1562 '''return diffopts with all features supported and parsed'''
1563 return difffeatureopts(ui, opts=opts, untrusted=untrusted, section=section)
1564
1565 def difffeatureopts(ui, opts=None, untrusted=False, section='diff'):
1566 '''return diffopts with only opted-in features parsed'''
1562 def get(key, name=None, getter=ui.configbool, forceplain=None):
1567 def get(key, name=None, getter=ui.configbool, forceplain=None):
1563 if opts:
1568 if opts:
1564 v = opts.get(key)
1569 v = opts.get(key)
General Comments 0
You need to be logged in to leave comments. Login now