#git #version-control #cli #search #parser #cargo-fuzz

gix-pathspec

A crate of the gitoxide project dealing magical pathspecs

5 releases (3 breaking)

new 0.4.1 Dec 6, 2023
0.4.0 Oct 12, 2023
0.3.0 Sep 24, 2023
0.2.0 Sep 8, 2023
0.1.0 Aug 22, 2023

#49 in #version-control

Download history 1553/week @ 2023-08-19 4411/week @ 2023-08-26 18197/week @ 2023-09-02 16546/week @ 2023-09-09 16949/week @ 2023-09-16 23912/week @ 2023-09-23 26760/week @ 2023-09-30 29506/week @ 2023-10-07 27990/week @ 2023-10-14 26106/week @ 2023-10-21 26353/week @ 2023-10-28 28971/week @ 2023-11-04 30314/week @ 2023-11-11 28932/week @ 2023-11-18 39861/week @ 2023-11-25 30624/week @ 2023-12-02

133,914 downloads per month
Used in 9 crates (2 directly)

MIT/Apache

195KB
3.5K SLoC

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.


lib.rs:

Parse path specifications and see if a path matches.

Dependencies

~3–12MB
~111K SLoC