Message ID | pull.767.git.1603303474.gitgitgadget@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | fsmonitor inline / testing cleanup | expand |
Hi Nipunn, On Wed, Oct 21, 2020 at 06:04:32PM +0000, Nipunn Koorapati via GitGitGadget wrote: > Credit to alexmv again - I'm rebasing these changes from a couple years ago > for contribution. > > Full comments are available here - > https://public-inbox.org/git/01ad47b4-aa5e-461a-270b-dd60032afbd1@gmail.com/ > To summarize the relevant points I'm fine with both of these patches, but it may help to have a bit more information about how they will be used. Presumably more patches are coming that make use of the new public functions, but it'd be good to know a little bit of why these changes are necessary. Thanks, Taylor
> I'm fine with both of these patches, but it may help to have a bit > more information about how they will be used. Presumably more patches > are coming that make use of the new public functions, but it'd be good > to know a little bit of why these changes are necessary. I believe the externs are just there to avoid pulling in `dir.h` from the include file - since it's only needed in the implementation. I believe at the time (12/2017) `dir.h` was not imported from `fsmonitor.h`, but it does appear imported now. I've eliminated the import of `dir.h` as it no longer appears necessary - which I will include in the next iteration of this diff. The test helper merely makes it easier to debug fsmonitor tests - will be useful to any developer working on fsmonitor related changes. I have an upcoming one related to fsmonitor in git checkout, which I've also revived, but I'm not 100% sure I'll get it through, but regardless, I believe this test-debugging change will be good. --Nipunn