A riff on git: show all changed files between two commits: I want a listing of all files that have been changed between two commits, even if they are now the same (ie, changed and then changed back).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is the best I could come up with:
Replace HEAD^^ and HEAD with the commits you want to compare.
My attempt uses
git logwith--name-onlyto list all files of each commit between the specified ones.--pretty=onelinemakes the part above the file listing consist only of the commit SHA and message title.--full-indexmakes the SHA be the full 40 characters.grepfilters out anything looking like a SHA followed by a space. Unless you have files beginning with a SHA followed by a space, the result should be accurate.