commit 2e2450f50c41d866e20dec2ad4d9eafa3c19f2ba from: Mark Jamsek date: Wed Oct 04 14:02:26 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 - f73bf5bd9e54af999a744c731dfb492e1c9b2b6d commit + 2e2450f50c41d866e20dec2ad4d9eafa3c19f2ba 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 - a3da7e007be3791e1abcc6838dc6f592581eeb65 blob + 19547283cc38d79b4c4555e2bbe444ce6bab29d3 --- tog/tog.c +++ tog/tog.c @@ -156,7 +156,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,