timotheecour
timotheecour

Reputation: 3641

How to show full paths in git diff?

How do I show full paths in git diff? One can use '--dst-prefix=$PWD' and '--src-prefix=$PWD' but this is fragile as it won't work in many cases, eg with --no-index, or when running the commond from a subdirectory without using --relative=realpath_to_cwd

Upvotes: 5

Views: 2349

Answers (1)

VonC
VonC

Reputation: 1323753

It should be possible to:

That would be more robust than $PWD.

Upvotes: 1

Related Questions