t1502: move optionspec help output to a file
[git/debian.git] / t / t7519 / fsmonitor-all-v2
blob061907e88b658acc983bd852f5025494bf3e88a6
1 #!/usr/bin/perl
3 use strict;
4 use warnings;
6 # An test hook script to integrate with git to test fsmonitor.
8 # The hook is passed a version (currently 2) and since token
9 # formatted as a string and outputs to stdout all files that have been
10 # modified since the given time. Paths must be relative to the root of
11 # the working tree and separated by a single NUL.
13 #echo "$0 $*" >&2
14 my ($version, $last_update_token) = @ARGV;
16 if ($version ne 2) {
17 print "Unsupported query-fsmonitor hook version '$version'.\n";
18 exit 1;
21 print "last_update_token\0/\0"