0

I want to write a hook that prepares a commit message based on the paths of the changed files. Is it possible to get such a file list at that stage?

I checked the githooks manual entry, but it is kinda sparse.

xeruf
  • 2,602
  • 1
  • 25
  • 48

1 Answers1

-1

Use git diff --cached --name-only -r in the script

xeruf
  • 2,602
  • 1
  • 25
  • 48