Skip to content
Snippets Groups Projects
Commit e2796f19 authored by Sean Farley's avatar Sean Farley
Browse files

patch: add similarity config knob in experimental section

This config knob will control whether or not to show the similarity
calculation in the diff output:

  diff --git a/README.md b/foo.md
  similarity index 88%
  rename from README.md
  rename to foo.md
  --- a/README.md
  +++ b/foo.md
parent 0ae287eb
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,7 @@
'ignorewsamount': False,
'ignoreblanklines': False,
'upgrade': False,
'showsimilarity': False,
}
def __init__(self, **opts):
......
......@@ -2169,6 +2169,11 @@
if git:
buildopts['git'] = get('git')
# since this is in the experimental section, we need to call
# ui.configbool directory
buildopts['showsimilarity'] = ui.configbool('experimental',
'extendedheader.similarity')
# need to inspect the ui object instead of using get() since we want to
# test for an int
hconf = ui.config('experimental', 'extendedheader.index')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment