XD/README.md
Squibid eb0f31daa7
complete rewrite in zig...
upon release v5.0 I introduced a regression through my caching system in
which I naively thought that the mtime of a directory was updated by
child directories when it actually only updates for child files.

This rewrite introduces a new caching system where instead of relying on
mtime of the index file I simply store the path to, at most, 10
untracked paths and check those before anything else. This results in
slower, but more reliable caching. However due to Zig's ease of use I
was able to bring down the overall use when statically linked to libgit2
so overall XD should be faster \o/.

I also added a visor? (O) to represent an in progress rebase.
2026-02-22 17:33:43 -05:00

12 lines
423 B
Markdown

# XD
Smiley face to explain info on the shell.
---
More info on XD can be found in the manpage.
## Building
When packaging XD it's recommended to use the following flags:
`zig build -Doptimize=ReleaseFast`
which will won't be linked to libgit2, if you instead wish to link to libgit2:
`zig build -Doptimize=ReleaseFast -Ddynamic=true`
Statically linking results in marginally faster, but significantly larger
executables.