This question calls for "line numbers". If you do not care about line numbers in the output, see this question and answer.
Basically, I don’t want to see the changed content, just the file names and line numbers.
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.
Note: if you’re just looking for the names of changed files (without the line numbers for lines that were changed), see another answer here.
There’s no built-in option for this (and I don’t think it’s all that useful either), but it is possible to do this in Git, with the help of an "external diff" script.
Here’s a pretty crappy one; it will be up to you to fix up the output the way you would like it.
For details on "external diff", see the description of
GIT_EXTERNAL_DIFFon the Git manual page (around line 700, pretty close to the end).