git: 9front

Download patch

ref: 18207e0f7eb967b9980d657668354e56cf5f5901
parent: 8a292ba15b90a24cc1f119ec034c2887c2ef3907
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Dec 6 23:14:17 EST 2025

git/import: also strip 'Re:' from message subjects

importable patches may come in responses to messages,
not just as the first message in the thread.

--- a/sys/src/cmd/git/import
+++ b/sys/src/cmd/git/import
@@ -91,7 +91,7 @@
 		date=$0
 	}
 	state=="headers" && /^Subject:/{
-		sub(/^Subject:[ \t]*(\[[^\]]*\][ \t]*)*/, "", $0);
+		sub(/^Subject:[ \t]*([Rr][Ee]:)?[ \t]*(\[[^\]]*\][ \t]*)*/, "", $0);
 		gotmsg = 1
 		print > "/env/msg"
 	}
--