Skip to content

Commit 8d7b35b

Browse files
committed
Merge branch 'sz/macos-fsmonitor-symlinks'
Fix an issue where core.fsmonitor on macOS would not notice created or modified symbolic links. * sz/macos-fsmonitor-symlinks: fsmonitor--daemon: on macOS support symlink
2 parents a655f28 + ee0e7fc commit 8d7b35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/fsmonitor/fsm-listen-darwin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static void fsevent_callback(ConstFSEventStreamRef streamRef,
336336
* know how much to invalidate/refresh.
337337
*/
338338

339-
if (event_flags[k] & kFSEventStreamEventFlagItemIsFile) {
339+
if (event_flags[k] & (kFSEventStreamEventFlagItemIsFile | kFSEventStreamEventFlagItemIsSymlink)) {
340340
const char *rel = path_k +
341341
state->path_worktree_watch.len + 1;
342342

0 commit comments

Comments
 (0)