How to get rid of the ... at the output of the show command in Git

71 views Asked by At
git show  --stat --pretty=format: 50c2ebc0e

Outputs:

 .git.ignore                                 |    2 +-
 .../WebServiceRequests/WebService.cs        |   78 ++++++++++----------
 .../UI/Bin/AjaxControlToolkit.omi           |    1 +

Is there a way to get the full path instead of those pesky 3 dots (...)?

Thanks

2

There are 2 answers

0
araqnid On BEST ANSWER

Something like --stat=180,150. The numbers are: max width to take for the stat output, max width to use for the filenames.

0
patthoyts On

Possibly you might use git whatchanged which puts the full paths on the end of the lines. This one is likely easier to parse if you get any filenames with spaces in.