Skip to content
  • Jeff King's avatar
    interpret-trailers: add an option to unfold values · 00002396
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The point of "--only-trailers" is to give a caller an output
    that's easy for them to parse. Getting rid of the
    non-trailer material helps, but we still may see more
    complicated syntax like whitespace continuation. Let's add
    an option to unfold any continuation, giving the output as a
    single "key: value" line per trailer.
    
    As a bonus, this could be used even without --only-trailers
    to clean up unusual formatting in the incoming data.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    00002396