aboutsummaryrefslogtreecommitdiffstats
path: root/commands/set.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-07-28 23:10:30 +0200
committerRobin Jarry <robin@jarry.cc>2022-08-01 09:38:15 +0200
commitc816103a24757bd0e91f7d96b60073a3063bc85a (patch)
treee9e70a0bd2b96925cc60732fd4ef6c9f5349409e /commands/set.go
parentd05cad1707c8702b52c244678d6d6a4e86ed5a87 (diff)
downloadaerc-c816103a24757bd0e91f7d96b60073a3063bc85a.tar.gz
pipe: fix ordering by message id for long patch series
Git send-email Message-Id headers have the following format: DATETIME.PID-NUM-COMMITTER Unfortunately, when there are more than 9 patches, the patch number (NUM) is not zero-padded which makes ascii sorting invalid, e.g.: 1 10 11 12 2 3 4 5 6 7 8 9 Instead of: 1 2 3 4 5 6 7 8 9 10 11 12 We need the patches to be ordered correctly to pipe them to git am. Make sure to pad the patch number with zero characters to allow series of up to 999 patches. Only re-order messages before piping them if all the Message-Id headers look like git-send-email headers. Link: https://github.com/git/git/blob/v2.36.0/git-send-email.perl#L1197 Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'commands/set.go')
0 files changed, 0 insertions, 0 deletions