Make git pull show relative path to the current directory for updated files

Viewed 140

If my current directory is a subdirectory of a git project and I call git pull it always shows a path relative to the project root. Is there a way to see changed file paths relative to current directory?

Ex.

<root>/default $ git pull
...
Updating 03e5eb12..95987ffb
Fast-forward

../client/styles/components/manageEscrow.styles.ts               |  11 +++++
./lib/index.ts                                                   |   8 ++--

INSTEAD OF
client/styles/components/manageEscrow.styles.ts                  |  11 +++++
default/lib/index.ts                                             |   8 ++--
1 Answers

No, there isn't an option for this. Git runs the diff machinery to produce this, and beyond the ability to control whether it's printed at all, there aren't any knobs to control it.

If, knowing that, you'd rather not see it, you can set either merge.stat or merge.diffstat to false, and Git will not produce it.

If this is a feature you want, the Git list would probably be open to a patch.

Related