I know that we can use the command git show --pretty="" --name-only 90e34953
to list all files from a specific commit.
Is it possible to execute git log and include all files from the commits to the output?
Maybe there is a script which runs through each commit and inserts it into the command above?
e.g. (pseudocode)
$out = "";
foreach($commit in $commits) {
$out .= $commit
$out .= "----------------------------------------"
$out .= (git show --pretty="" --name-only $commit)
}
$out > logfile.txt
We try to find out which commit added a specific file.