Hello! Sorry for the long delay in replying.
i looked at the patch but I am not sure if I understand it fully. Upstream is very responsive so I suggest you send a pull request at https://bitbucket.org/eradman/entr/pull-requests/ for the parts that are upstreamable and for the rest a merge request is welcome at https://salsa.debian.org/debian/entr/merge_requests - Otto PS. Yuri: here is more of the background http://crossqa.debian.net/src/entr in case you want to dig into this and do the final fixes.