• Show log

    Commit

  • Hash : f063dafb
    Author : Henry Kleynhans
    Date : 2017-11-12T10:56:50

    signature: distinguish +0000 and -0000 UTC offsets
    
    Git considers '-0000' a valid offset for signature lines.  They need to
    be treated as _not_ equal to a '+0000' signature offset.  Parsing a
    signature line stores the offset in a signed integer which does not
    distinguish between `+0` and `-0`.
    
    This patch adds an additional flag `sign` to the `git_time` in the
    `signature` object which is populated with the sign of the offset.  In
    addition to exposing this information to the user, this information is
    also used to compare signatures.
    
    /cc @pks-t @ethomson