fsmonitor--daemon: add pathname classification
commit0ae7a1d9ab086330c4f7d86f8b421cd974416848
authorJeff Hostetler <jeffhost@microsoft.com>
Fri, 25 Mar 2022 18:02:55 +0000 (25 18:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Mar 2022 23:04:16 +0000 (25 16:04 -0700)
tree0b623f34bf6318e12fcd0c69348e1412195696e0
parentc284e27ba77ee385d322bb90aeb2284bf52c014b
fsmonitor--daemon: add pathname classification

Teach fsmonitor--daemon to classify relative and absolute
pathnames and decide how they should be handled.  This will
be used by the platform-specific backend to respond to each
filesystem event.

When we register for filesystem notifications on a directory,
we get events for everything (recursively) in the directory.
We want to report to clients changes to tracked and untracked
paths within the working directory proper.  We do not want to
report changes within the .git directory, for example.

This classification will be used in a later commit by the
different backends to classify paths as events are received.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsmonitor--daemon.c
fsmonitor--daemon.h