]> Kevux Git Server - rit/commit
fsmonitor: convert shown khash to strset in do_handle_client
authorPaul Tarjan <github@paulisageek.com>
Wed, 15 Apr 2026 13:27:37 +0000 (13:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Apr 2026 15:44:34 +0000 (08:44 -0700)
commitb1cebd7194299ad5414ab2122b2970b339399446
tree1f2b9e45fbcf75eb65553245594d026ce4ecab4e
parentd21fc23546e72ef7067c6664485d2436fc67fdde
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