aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-10-23 16:01:21 +0200
committerRobin Jarry <robin@jarry.cc>2022-10-25 22:24:31 +0200
commita381630604066cde5b791bfadb92de8c35e1cd1c (patch)
treee90bf4000c5b79971438630edb7da4e955952391 /lib/ui
parenta820e12d0f471e6768b0b198ed93fe5c244d2000 (diff)
downloadaerc-a381630604066cde5b791bfadb92de8c35e1cd1c.tar.gz
pipe: reorder patches based on email subjects
The Message-Id header cannot be relied upon as users can tweak it before sending. The subject seems a more reliable basis to reorder patches. Change the logic of sorting. Previously, all messages were required to look like patches to be sorted. Now if at least one message looks like a patch, all messages will be sorted by Subject before piping them. Since `git am` ignores non-patch messages, it should allow piping series of emails including reviews and comments without getting confusing errors. I have tested that this works on multiple series that appeared out of order in my INBOX with the following command (after marking the messages): :pipe -m sed -n 's/^Subject: //p' Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'lib/ui')
0 files changed, 0 insertions, 0 deletions