Skip to content
  • Paolo Bonzini's avatar
    patch-id: Add support for mbox format · 580fb25b
    Paolo Bonzini authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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, or likely by the MIME boundary.
    
    This patch adds hunk parsing logic to git patch-id in order to detect an
    out of place "-" line and split the patch when it comes.  In addition,
    commit ids in the "From " lines are considered and printed in the output.
    
    Signed-off-by: Paolo Bonzini's avatarPaolo Bonzini <bonzini@gnu.org>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    580fb25b