| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use strict; |
| 4 | use warnings; |
| 5 | # |
| 6 | # An test hook script to integrate with git to test fsmonitor. |
| 7 | # |
| 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. |
| 12 | # |
| 13 | #echo "$0 $*" >&2 |
| 14 | my ($version, $last_update_token) = @ARGV; |
| 15 | |
| 16 | if ($version ne 2) { |
| 17 | print "Unsupported query-fsmonitor hook version '$version'.\n"; |
| 18 | exit 1; |
| 19 | } |
| 20 | |
| 21 | print "last_update_token\0/\0" |