4

What git command will display a list of all committed modifications, one modified file per line, with the file's path?

2 Answers 2

6

I think

git log --stat 

is what you're after.

Sign up to request clarification or add additional context in comments.

4 Comments

Looks great, thanks. Can you make it show the full untrimmed path?
I wasn't aware that it did trim paths. Oh, do you mean the absolute path?
Or is it because you're not at the top level of the working tree?
it just trims them. The documentation reveals this parameter to set the width to 200: git log --stat=200,200.
2

This is how you get a full list without trimming:

git log --stat=200 --stat-name-width=150 

200 stands for a total width of the output, and 150 for the width of a file name column. If name-width is bigger than total width it will be truncated.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.