git/compat/fsmonitor
srz_zumix ee0e7fc927 fsmonitor--daemon: on macOS support symlink
Resolves a problem where symbolic links were not showing up in diff when
created or modified.

kFSEventStreamEventFlagItemIsSymlink is also treated as a file update.
This is because kFSEventStreamEventFlagItemIsFile is not included in
FSEvents when creating or deleting symbolic links. For example:

$ ln -snf t test
  fsevent: '/path/to/dir/test', flags=0x40100 ItemCreated|ItemIsSymlink|
$ ln -snf ci test
  fsevent: '/path/to/dir/test', flags=0x40200 ItemIsSymlink|ItemRemoved|
  fsevent: '/path/to/dir/test', flags=0x40100 ItemCreated|ItemIsSymlink|

Signed-off-by: srz_zumix <zumix.cpp@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
2022-11-08 16:36:09 -05:00
..
fsm-darwin-gcc.h compat/fsmonitor/fsm-listen-darwin: add MacOS header files for FSEvent 2022-03-25 16:04:16 -07:00
fsm-health-darwin.c fsmonitor--daemon: stub in health thread 2022-05-26 15:59:27 -07:00
fsm-health-win32.c fsm-health-win32: force shutdown daemon if worktree root moves 2022-05-26 15:59:27 -07:00
fsm-health.h fsmonitor--daemon: stub in health thread 2022-05-26 15:59:27 -07:00
fsm-ipc-darwin.c fsmonitor OSX: compile with DC_SHA1=YesPlease 2022-10-19 09:34:47 -07:00
fsm-ipc-win32.c fsmonitor: relocate socket file if .git directory is remote 2022-10-05 11:05:22 -07:00
fsm-listen-darwin.c fsmonitor--daemon: on macOS support symlink 2022-11-08 16:36:09 -05:00
fsm-listen-win32.c fsmonitor--daemon: rename listener thread related variables 2022-05-26 15:59:26 -07:00
fsm-listen.h fsmonitor--daemon: rename listener thread related variables 2022-05-26 15:59:26 -07:00
fsm-path-utils-darwin.c fsmonitor: deal with synthetic firmlinks on macOS 2022-10-05 11:05:23 -07:00
fsm-path-utils-win32.c fsmonitor: deal with synthetic firmlinks on macOS 2022-10-05 11:05:23 -07:00
fsm-settings-darwin.c fsmonitor: avoid socket location check if using hook 2022-10-05 11:05:23 -07:00
fsm-settings-win32.c fsmonitor: avoid socket location check if using hook 2022-10-05 11:05:23 -07:00