git-commit-vandalism/compat/fsmonitor
Ævar Arnfjörð Bjarmason 32205655dc fsmonitor OSX: compile with DC_SHA1=YesPlease
As we'll address in subsequent commits the "DC_SHA1=YesPlease" is not
on by default on OSX, instead we use Apple Common Crypto's SHA-1
implementation.

In 6beb2688d3 (fsmonitor: relocate socket file if .git directory is
remote, 2022-10-04) the build was broken with "DC_SHA1=YesPlease" (and
probably other non-"APPLE_COMMON_CRYPTO" SHA-1 backends).

So let's extract the fix for this from [1] to get the build working
again with "DC_SHA1=YesPlease". In addition to the fix in [1] we also
need to replace "SHA_DIGEST_LENGTH" with "GIT_MAX_RAWSZ".

1. https://lore.kernel.org/git/c085fc15b314abcb5e5ca6b4ee5ac54a28327cab.1665326258.git.gitgitgadget@gmail.com/

Signed-off-by: Eric DeCosta <edecosta@mathworks.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-10-19 09:34:47 -07: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: deal with synthetic firmlinks on macOS 2022-10-05 11:05:23 -07: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