ng...\n&quot; if $? != 0;

return $json_pkg-&gt;new-&gt;utf8-&gt;decode($response);</pre>

<p>}</p>

<p>sub watchman_query {</p>

<pre>my $pid = open2(\*CHLD_OUT, \*CHLD_IN, &#39;watchman -j --no-pretty&#39;)
or die &quot;open2() failed: $!\n&quot; .
&quot;Falling back to scanning...\n&quot;;

# In the query expression below we&#39;re asking for names of files that
# changed since $last_update_token but not from the .git folder.
#
# To accomplish this, we&#39;re using the &quot;since&quot; generator to use 