ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib
Martin von Zweigbergk 88f7f4732b gitignores: add own implementation and stop using libgit2's
This is to address issue #8. I haven't added the optimization to avoid
walking all the files in `target/` yet. Even so, this patch still
speeds up `jj st` in this repo, with ~13k files in `target/`, from
~320 ms to ~100 ms (-5.1dB). The time actually checking if paths match
gitignores seems to go down from 116 ms to 6 ms. I think that's mostly
because libgit2 has to look for `.gitignore` files in every parent
directory every time we ask it about a file, while the rewritten code
looks for a `.gitignore` file only when visiting a new directory.
2021-05-13 22:23:59 -07:00
..
benches
protos cli: record full argv in operation log 2021-05-09 22:42:13 -07:00
src gitignores: add own implementation and stop using libgit2's 2021-05-13 22:23:59 -07:00
tests transaction: make commit() return resulting ReadonlyRepo 2021-05-08 13:50:59 -07:00
build.rs
Cargo.toml gitignores: add own implementation and stop using libgit2's 2021-05-13 22:23:59 -07:00