Preferred Way (because it’s a plumbing command; meant to be programmatic):
Another Way (less preferred for scripts, because it’s a porcelain command; meant to be user-facing)
--no-commit-idsuppresses the commit ID output.
--prettyargument specifies an empty format string to avoid the cruft at the beginning.
--name-onlyargument shows only the file names that were affected (Thanks Hank). Use
--name-statusinstead, if you want to see what happened to each file (Deleted, Modified, Added)
-rargument is to recurse into sub-trees