#version-control #gitoxide #specification #path #parser

gix-pathspec

A crate of the gitoxide project dealing magical pathspecs

27 releases (15 breaking)

new 0.16.0 Feb 22, 2026
0.15.0 Jan 22, 2026
0.14.0 Dec 22, 2025
0.13.0 Oct 22, 2025
0.4.0 Oct 12, 2023

#1295 in Filesystem

Download history 455357/week @ 2025-11-02 425009/week @ 2025-11-09 408503/week @ 2025-11-16 328448/week @ 2025-11-23 344584/week @ 2025-11-30 334404/week @ 2025-12-07 303876/week @ 2025-12-14 196406/week @ 2025-12-21 207357/week @ 2025-12-28 355236/week @ 2026-01-04 386891/week @ 2026-01-11 455677/week @ 2026-01-18 588864/week @ 2026-01-25 695132/week @ 2026-02-01 895393/week @ 2026-02-08 721632/week @ 2026-02-15

2,943,246 downloads per month
Used in 203 crates (5 directly)

MIT/Apache

290KB
5K SLoC

Parse path specifications and see if a path matches.


gix-pathspec

Testing

Fuzzing

cargo fuzz is used for fuzzing, installable with cargo install cargo-fuzz.

Targets can be listed with cargo fuzz list and executed via cargo +nightly fuzz run <target>, where <target> can be parse for example.

Notes

  • There is one additional keyword that git can parse, but that this crate doesn't support yet: the prefix keyword

    Here is a commit in which prefix is somewhat explained.

Dependencies

~3–4.5MB
~84K SLoC