ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib
Martin von Zweigbergk 0fbb1d3971 working_copy: don't visit whole ignored tree even if last in order
When committing the working copy, we try to not visit ignored
directories (as e.g. `target/` often is), but we need to visit it if
there are already tracked files in it. I initially missed that in
c1060610bd and then fixed it in a028f33e3b. The fix works by
checking if the next path after the ignored path is inside the ignore
path (viewed as a directory). However, I forgot to handle the case
where there are no paths at all after the ignored path. So, for
example, if the `target/` directory should be ignored and it there
were no tracked paths after `target/` in alphabetical order, we would
still visit the directory. That's why the bug reproduced in the
`git-branchless` repo but not in the `jj` repo (because there are
files under `testing/` and `tests/` here).

Closes #247.
2022-04-26 20:53:49 -07:00
..
protos working_copy: record sparse patterns in the tree state (#52) 2022-04-26 14:52:17 -07:00
src working_copy: don't visit whole ignored tree even if last in order 2022-04-26 20:53:49 -07:00
tests working_copy: respect sparse patterns when writing tree (#52) 2022-04-26 14:52:17 -07:00
build.rs
Cargo.toml cargo: upgrade uuid to 1.0.0 2022-04-20 14:18:59 -07:00