Commit 45fe889a authored by Alberto Fanjul's avatar Alberto Fanjul

Add gsetting key to use patience algorithm

parent 92e8b11b
Pipeline #35830 passed with stages
in 32 minutes and 9 seconds
......@@ -208,6 +208,13 @@
</key>
</schema>
<schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.gitg.preferences.diff" path="/org/gnome/gitg/preferences/diff/">
<key name="patience" type="b">
<default>false</default>
<_summary>Use patience algorithm to show diffs</_summary>
<_description>
Setting to use patience algorithm to show diffs of a commit.
</_description>
</key>
<key name="ignore-whitespace" type="b">
<default>false</default>
<_summary>Ignore Whitespace Changes</_summary>
......
......@@ -102,6 +102,11 @@ class CommitActionCreatePatch : GitgExt.UIElement, GitgExt.Action, GitgExt.Commi
opts.flags |= Ggit.DiffOption.IGNORE_WHITESPACE;
}
if (settings.get_boolean("patience"))
{
opts.flags |= Ggit.DiffOption.PATIENCE;
}
var nc = settings.get_int("context-lines");
opts.n_context_lines = nc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment