commit 8295dece153624d0efa4d5df11e73119adcf1764 from: Mark Jamsek via: Thomas Adam date: Sun Oct 08 11:13:51 2023 UTC tog: make patience the default diff algorithm As discussed on IRC. It makes nicer diffs and the performance hit should only be noticeable with the odd large diff. It might also be a motivator in trying to speed up the patience implementation. ok stsp@ commit - d1e03b8cc3ffd9122ab07adab47d84534f70bd67 commit + 8295dece153624d0efa4d5df11e73119adcf1764 blob - 6b4cb836095040c424af47d6a41111f9f98496b5 blob + d8658727083f485410ad107da6f6be22bc730f01 --- tog/tog.1 +++ tog/tog.1 @@ -938,7 +938,7 @@ are .Dq patience and .Dq myers . -If unset, the Myers diff algorithm will be used by default. +If unset, the Patience diff algorithm will be used by default. .It Ev TOG_VIEW_SPLIT_MODE Determines the default layout of split-screen views. If set to blob - ef460ef97a1a026c9f09084327688fc233fa180d blob + 8254a3de951c3f481513de8eaada4bbca428bcbf --- tog/tog.c +++ tog/tog.c @@ -160,7 +160,7 @@ static struct { int idx; char marker; } tog_base_commit; -static enum got_diff_algorithm tog_diff_algo = GOT_DIFF_ALGORITHM_MYERS; +static enum got_diff_algorithm tog_diff_algo = GOT_DIFF_ALGORITHM_PATIENCE; static const struct got_error * tog_ref_cmp_by_name(void *arg, int *cmp, struct got_reference *re1,