exec git init
exec git add -A
exec git config user.email "you@example.com"
exec git config user.name "Your Name"
exec git add -A
exec git commit -m 'first commit'
rm file.txt
exec git add -A
exec lefthook run pre-commit
stdout '^\s*must be printed\s*$'

-- lefthook.yml --
output:
  - execution_out
pre-commit:
  jobs:
    - run: echo 'must be printed'
    - run: echo 'excluded txt'
      exclude:
        - '*.txt'
    - run: echo 'excluded by' {staged_files}

-- file.txt --
will be deleted
