From: Ben Knoble Date: Fri, 16 May 2025 12:04:25 GMT Subject: Re: [PATCH] sequencer: make it clearer that commit descriptions are just comments Message-ID: In-Reply-To: > Le 15 mai 2025 à 11:56, Junio C Hamano a écrit : > > Phillip Wood writes: > >>> - grep -v -e \# -e ^$ work >patches && >>> + sed -e s/#.*// work | grep -v ^$ >patches && >> >> I think we could just use 'sed -n "!/^#/p work >patches &&" here > > Or even "sed -e '/^#/d' -e '/^$/d'" ? I’m probably missing something obvious, but why step away from "grep -v -e ^\# -e ^$"? A one character change from the original ;) If we must go with Sed, I’d prefer Junio’s construct (combining, with obvious semantics via "d") over the sed|grep pipeline.