]> git.ipfire.org Git - thirdparty/git.git/commit
fsm-listen-darwin: ignore FSEvents caused by xattr changes on macOS
authorJeff Hostetler <jeffhost@microsoft.com>
Thu, 26 May 2022 21:47:06 +0000 (21:47 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 May 2022 22:59:26 +0000 (15:59 -0700)
commit8e8f4b814bab3f1499e50404e344f5b483c91f40
tree7685f7d82274a4252fb36e46eff9216c4ed42c11
parent9968ed73ff8bf00d06862e6653451faeb008afef
fsm-listen-darwin: ignore FSEvents caused by xattr changes on macOS

Ignore FSEvents resulting from `xattr` changes.  Git does not care about
xattr's or changes to xattr's, so don't waste time collecting these
events in the daemon nor transmitting them to clients.

Various security tools add xattrs to files and/or directories, such as
to mark them as having been downloaded.  We should ignore these events
since it doesn't affect the content of the file/directory or the normal
meta-data that Git cares about.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/fsmonitor/fsm-listen-darwin.c