mirror of
https://github.com/lewis6991/gitsigns.nvim
synced 2025-04-24 20:28:11 +00:00
19 lines
497 B
Lua
Generated
19 lines
497 B
Lua
Generated
local config = require('gitsigns.config').config
|
|
local Hunk = require('gitsigns.hunks').Hunk
|
|
|
|
return function(a, b, linematch)
|
|
local diff_opts = config.diff_opts
|
|
local f
|
|
if diff_opts.internal then
|
|
f = require('gitsigns.diff_int').run_diff
|
|
else
|
|
f = require('gitsigns.diff_ext').run_diff
|
|
end
|
|
|
|
local linematch0
|
|
if linematch ~= false then
|
|
linematch0 = diff_opts.linematch
|
|
end
|
|
return f(a, b, diff_opts.algorithm, diff_opts.indent_heuristic, linematch0)
|
|
end
|