Reputation: 3641
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
Reputation: 1323753
It should be possible to:
--relative
, --dst-prefix
and --src-prefix
options.That would be more robust than $PWD
.
Upvotes: 1