0

Say I have a repository with some commits that have commit messages that start with "Update foo to". I would like to see all file changes in only those commits.

So could the output of git whatchanged to be filtered to only show commits with commit messages that start with "Update foo to"?

paradroid
  • 219
  • 3
  • 12

1 Answers1

1

Using git log is preferred, maybe this answer will help?
To show the full diff using the suggested command from the answer, you could use git log --all -p --grep="Update foo to"

dor132
  • 183
  • 1
  • 1
  • 8
  • I didn't know about the `--grep` switch. That's perfect and a lot simpler than I was expecting any solution to be. – paradroid Oct 21 '22 at 20:38