From: Junio C Hamano Date: Fri, 16 Apr 2010 18:30:35 GMT Subject: Re: [PATCH] patch-id: Add support for mbox format Message-ID: <7vk4s7cks4.fsf@alter.siamese.dyndns.org> In-Reply-To: <1271434948-14134-1-git-send-email-bonzini@gnu.org> Paolo Bonzini writes: > I have an alias that takes two arguments and compares their patch IDs. > I would like to use to make sure I've tested exactly what I submit > (patch by patch), like > > git patch-cmp origin/master.. file-being-sent > > However, I cannot do that because git patch-id is fooled by the > "-- " trailer that git format-patch puts. > > This patch adds a bit of lookahead to git patch-id in order to detect > the trailer and split the patch when it comes. In addition, commit > ids in the "From " lines are considered and printed in the output. How well does this interact with mime encoded output? I somehow have a feeling that this is solving a wrong problem.