exec git init
exec lefthook install
exec git config user.email "you@example.com"
exec git config user.name "Your Name"
exec git add -A
exec git status --short
exec git commit -m 'test stage_fixed'
exec git status --short
! stdout .

-- lefthook.yml --
pre-commit:
  commands:
    edit_file:
      run: echo "{staged_files}" && echo newline >> "[file].js"
      stage_fixed: true

-- [file].js --
somecode
