]> git.ipfire.org Git - thirdparty/git.git/commit
fsmonitor: add assertion that fsmonitor is valid to check_removed
authorNipunn Koorapati <nipunn@dropbox.com>
Wed, 17 Mar 2021 21:22:22 +0000 (21:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Mar 2021 20:31:13 +0000 (13:31 -0700)
commit0ec9949f78e348250f55ba0343344ec8c606be11
tree929a8a2d49ce004cf9c1e3503d4525b5741509d3
parent4f3d6d026176a48991c4e5ff95c8db583af38148
fsmonitor: add assertion that fsmonitor is valid to check_removed

Validate that fsmonitor is valid to futureproof against bugs where
check_removed might be called from places that haven't refreshed.

Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c
fsmonitor.h