Skip to content

Commit 635a535

Browse files
committed
Make CL configurable via environment variable DIFF_CONTEXT
1 parent b596499 commit 635a535

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/xtra/DIFF.LUA

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#!/usr/bin/env lua
1+
#!/usr/bin/env lua
22

3-
CL = 3
3+
CL = tonumber(os.getenv("DIFF_CONTEXT")) or 3
44
local function diff_u(fn1, fn2)
55
local function open(fn) local f, e = io.open(fn) if not f then print(e) os.exit(1) end return f end
66
local f1, f2, pre, add, del, p1, p2, x, y, h, l1, l2 = open(fn1), open(fn2), {}, {}, {}, 0, 0, 0, 0

0 commit comments

Comments
 (0)