diff options
author | Ondřej Lysoněk <olysonek@redhat.com> | 2020-06-09 15:13:11 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2020-06-09 15:13:11 +0200 |
commit | 664886c62ae6424f1229972f140403e239dd4267 (patch) | |
tree | f8b0fc61bc4e94818f05cdbfb39cd1c2ce61eeeb /test/faildiff.test | |
parent | 5e5d19429ff354040de72c775c70fe0ab6f3061b (diff) | |
download | quilt-664886c62ae6424f1229972f140403e239dd4267.tar.gz |
quilt.el: Fix quilt-editable when QUILT_PATCHES_PREFIX is set
This patch fixes a bug in quilt-editable: if QUILT_PATCHES_PREFIX is
set, quilt-editable will always return nil, even if the file being
edited is part of the topmost patch.
If QUILT_PATCHES_PREFIX is set, then 'quilt top' prints the patch name
as a relative path to the patch. Since in quilt-editable we're running
'quilt top' from the top level directory, the printed patch path is in
the form $QUILT_PATCHES/patch-name.
Later on, we're looking for a cached version of the file that we're
editing in .pc/. The patch directories are stored directly under .pc/,
rather than .pc/$QUILT_PATCHES/, so we must remove the $QUILT_PATCHES/
prefix from the patch path.
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'test/faildiff.test')
0 files changed, 0 insertions, 0 deletions