Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t7519/fsmonitor-all-v2 # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t7519 / fsmonitor-all-v2` 21 lines ยท 556 bytes Raw Blame History 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"