quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Quilt-dev] Keep comments after last chunk?


From: Jean Delvare
Subject: Re: [Quilt-dev] Keep comments after last chunk?
Date: Fri, 2 Feb 2024 10:19:03 +0100

Hi Fab,

On Mon, 29 Jan 2024 10:08:44 +0100, Fab Stz via Quilt-dev wrote:
> Let's consider this simple patch that is wrapped between two tags namely
> REUSE-IgnoreStart (before the 1st chunk) & REUSE-IgnoreEnd (after the last 
> chunk). These tags are used by reuse tool to determine that the code between 
> them should not be parsed. See https://reuse.software/faq/#exclude-lines for 
> the rationale.
> 
> When I "quilt refresh", REUSE-IgnoreStart is kept, while REUSE-IgnoreEnd is 
> removed. Is there a way to preserve the comments that are after the last 
> chunk?

I'm afraid not. Quilt treats patch files as a header followed by diff
payload. It has no notion of patch footer, possibly because it isn't
trivial to detect the end of the diff payload (as opposed to its
beginning, which has a reasonably well-defined and recognizable syntax).

For the same reason, quilt also can't preserve comments interleaved
with diff hunks.

-- 
Jean Delvare
SUSE L3 Support



reply via email to

[Prev in Thread] Current Thread [Next in Thread]