Allowing using the anchored diff from the Go stdlib as the diff implementation

This commit is contained in:
Kovid Goyal
2023-03-23 12:30:56 +05:30
parent 9c188096d0
commit 2ac170c1b1
4 changed files with 321 additions and 31 deletions

View File

@@ -37,9 +37,11 @@ opt('num_context_lines', '3',
opt('diff_cmd', 'auto',
long_text='''
The diff command to use. Must contain the placeholder :code:`_CONTEXT_` which
will be replaced by the number of lines of context. The default special value
:code:`auto` is to search the system for either :program:`git` or
:program:`diff` and use that, if found.
will be replaced by the number of lines of context. A few special values are allowed:
:code:`auto` will automatically pick an available diff implementation. :code:`builtin`
will use the anchored diff algorithm from the Go standard library. :code:`git` will
use the git command to do the diffing. :code:`diff` will use the diff command to
do the diffing.
'''
)