Re: [RFC PATCH 0/4] interpret-trailers: introduce "move" action
- From
Paolo Bonzini <pbonzini@redhat.com>
- Date
- Oct 6, 2017, 12:39 UTC
- Message-ID
- <fe023f38-01cc-2257-bbfe-3f4310193b41@redhat.com>
- In-Reply-To
- <CAP8UFD28vVx51xhDgQVesm356XAjfwb286baER-U6VOC+4NL4w@mail.gmail.com>
On 06/10/2017 14:33, Christian Couder wrote:
Show 5 quoted lines
> Ok. I think you might want something called for example > "replaceIfIdenticalClose" where "IdenticalClose" means: "there is a > trailer with the same (<token>, <value>) pair above or below the line > where the replaced trailer will be put when ignoring trailers with a > different <token>".
So basically "moveIfClosest" (move if last for where=end, move if first for where=begin; for where=after and where=before it would just end up doing nothing)? It's not hard to implement, but I'm wondering if it's too ad hoc.
Paolo