quot;$git_work_tree&quot;, {$last_update_line
                &quot;fields&quot;: [&quot;name&quot;],
                &quot;expression&quot;: [&quot;not&quot;, [&quot;dirname&quot;, &quot;.git&quot;]]
        }]
END

# Uncomment for debugging the watchman query
# open (my $fh, &quot;&gt;&quot;, &quot;.git/watchman-query.json&quot;);
# print $fh $query;
# close $fh;

print CHLD_IN $query;
close CHLD_IN;
my $response = do {local $/; &lt;CHLD_OUT&gt;};

# Uncomment for debugging the watch response
# open ($fh,