diff options
| author | Robert Günzler <r@gnzler.io> | 2026-01-29 19:16:23 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-01-29 21:05:54 +0100 |
| commit | 8f8ee8697131ea149568a02b77f23dc8dedae99a (patch) | |
| tree | 7fad212b20fc623905c74180c292d3a9512a9aa2 /src/exe.zig | |
| parent | 5ba0af482fe5bef57f99b1f36b7934d672859aaa (diff) | |
| download | site-8f8ee8697131ea149568a02b77f23dc8dedae99a.tar.gz | |
consolidate time access behind getLastEdit
and drop sourcing times from git for now... Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'src/exe.zig')
| -rw-r--r-- | src/exe.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exe.zig b/src/exe.zig index c1f084b..6aa260d 100644 --- a/src/exe.zig +++ b/src/exe.zig @@ -75,7 +75,7 @@ fn pandocWorker(ctx: *Context, page: []const u8) !void { defer ctx.allocator().free(target_path); // get mtime of the source document - const mtime = try (fs.getGitTime(source_path) catch fs.getMtime(source_path)); + const mtime = try fs.getLastEdit(source_path); const mtime_str = try fs.formatTimespec(ctx.allocator(), mtime, "%s"); defer ctx.allocator().free(mtime_str); |