]> git.ipfire.org Git - thirdparty/git.git/commit
fsmonitor: convert shown khash to strset in do_handle_client
authorPaul Tarjan <github@paulisageek.com>
Thu, 9 Apr 2026 04:59:35 +0000 (04:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Apr 2026 17:59:29 +0000 (10:59 -0700)
commit5637b48ef7055a58c6bfbbe65dee8607c8e71b4f
treee1eefc2a3894483c5f1b8ef477429c42409fb3d3
parent3ef97728f5514f664d7e04c239458107c53cf5ee
fsmonitor: convert shown khash to strset in do_handle_client

Replace the khash-based string set used for deduplicating pathnames
in do_handle_client() with a strset, which provides a cleaner
interface for the same purpose.

Since the paths are interned strings from the batch data, use
strdup_strings=0 to avoid unnecessary copies.

Suggested-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Paul Tarjan <github@paulisageek.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsmonitor--daemon.c