I run git show --stat 2a340b71b280d60bbc29f8d8fe00b7da5760e2bb
.
I get:
commit 2a340b71b280d60bbc29f8d8fe00b7da5760e2bb
Author: xxx <xxx@xxx.com>
Date: Thu Apr 30 13:40:54 2020 +0200
xxx
xxx.c | 1 +
I run git show --stat 2a340b71b280d60bbc29f8d8fe00b7da5760e2bb > git_show.txt
.
I get:
$ cat git_show.txt
commit 2a340b71b280d60bbc29f8d8fe00b7da5760e2bb
Author: xxx <xxx@xxx.com>
Date: Thu Apr 30 13:40:54 2020 +0200
xxx
xxx.c | 1 +
I.e. the formatting (spacing) is different! Very unexpected.
The problem is that in the git_show.txt
there are also .../xxx/xxx.c | 1 +
entries with clipped filenames, which prevents to see the full filename.
Why the formatting change happens and how to preserve the formatting?
P.S. git version 2.8.0