Hi, i need some help with my script;
I have done the first part but the second part i'm not entirely sure whether a second foreach is needed.
Firstly the script outputs files and hash's from a branch. Next to the hash i have managed to add a notation which i can change later to output "hash"
the second part i want to put "file" next to each file outputted, below i have included how the output should be and it is like that; but i just can't seem to get "file" notation next to each filename.
$GitList = git log master..branch2 --pretty=format:'%H' --reverse foreach ($hash in $GitList) { "$hash hash" $files = git show $hash --pretty="format:" --name-only $files } #-------------------------------output should be like below 37b970b35681728db2faa4135681728d hash branch2/ScriptPart1.ps1 file 37b970b371a7805a657030f687135681728d hash branch2/ScriptPart2.ps1 file branch2/ScriptPart3.ps1 file 37b970b30a137b970b381e5d5135681728d hash branch2/ScriptPart2.ps1 file 321b2feb5d37b970b32d47f4135681728d hashthanks in advance