Gets file changes from the last commit.
Uses git log to get the diff of the most recent commit. This is useful for detecting what was changed in the latest commit.
git log
Array of files changed in the last commit
When git command fails
Gets file changes from the last commit.
Uses
git log
to get the diff of the most recent commit. This is useful for detecting what was changed in the latest commit.