pgit.sh: Use plain directory path for diff prefix

The diff source and destination in diff used to be a/path/to/file.txt and
b/path/to/file.txt which differed from cvs diff -u. Changed that, now make diff
in the toplevel directory creates usable patches for all sources.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-06-01 08:41:00 +00:00
commit e1200746e3

View file

@ -119,7 +119,7 @@ diff()
cd $pdir
for d in $pdirs; do
# marker $d
run_git -C $d diff --src-prefix=a/$d/ --dst-prefix=b/$d/ "$@"
run_git -C $d diff --src-prefix=$d/ --dst-prefix=$d/ "$@"
done
)}