Closed keepsimple1 closed 1 year ago
This was changed as part of https://github.com/libgit2/libgit2/commit/ed577134a5dcf30c95b740859aceebd9c1137157 to match the behavior of the git CLI. As part of git's documentation "It will not exclude the current working directory". There was some back-and-forth discussion about that behavior in the original patch that introduced this feature, and I think it boiled down to the author wanted it that way.
I agree it was a little surprising to me.
Thanks for the info & links! I will close this issue.
https://github.com/rust-lang/git2-rs/blob/ca6b3346d2e50e79d7c160cbee82ee65e2bcd701/src/repo.rs#L3456
subdir
does not point to a git repo. Its parent directory is the repo. Why is it okay to usesubdir
as theceiling_dirs
?