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
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
sys | Loading commit data... | |
annotated_commit.h | Loading commit data... | |
attr.h | Loading commit data... | |
blame.h | Loading commit data... | |
blob.h | Loading commit data... | |
branch.h | Loading commit data... | |
buffer.h | Loading commit data... | |
checkout.h | Loading commit data... | |
cherrypick.h | Loading commit data... | |
clone.h | Loading commit data... | |
commit.h | Loading commit data... | |
common.h | Loading commit data... | |
config.h | Loading commit data... | |
cred_helpers.h | Loading commit data... | |
describe.h | Loading commit data... | |
diff.h | Loading commit data... | |
errors.h | Loading commit data... | |
filter.h | Loading commit data... | |
global.h | Loading commit data... | |
graph.h | Loading commit data... | |
ignore.h | Loading commit data... | |
index.h | Loading commit data... | |
indexer.h | Loading commit data... | |
inttypes.h | Loading commit data... | |
merge.h | Loading commit data... | |
message.h | Loading commit data... | |
net.h | Loading commit data... | |
notes.h | Loading commit data... | |
object.h | Loading commit data... | |
odb.h | Loading commit data... | |
odb_backend.h | Loading commit data... | |
oid.h | Loading commit data... | |
oidarray.h | Loading commit data... | |
pack.h | Loading commit data... | |
patch.h | Loading commit data... | |
pathspec.h | Loading commit data... | |
proxy.h | Loading commit data... | |
rebase.h | Loading commit data... | |
refdb.h | Loading commit data... | |
reflog.h | Loading commit data... | |
refs.h | Loading commit data... | |
refspec.h | Loading commit data... | |
remote.h | Loading commit data... | |
repository.h | Loading commit data... | |
reset.h | Loading commit data... | |
revert.h | Loading commit data... | |
revparse.h | Loading commit data... | |
revwalk.h | Loading commit data... | |
signature.h | Loading commit data... | |
stash.h | Loading commit data... | |
status.h | Loading commit data... | |
stdint.h | Loading commit data... | |
strarray.h | Loading commit data... | |
submodule.h | Loading commit data... | |
tag.h | Loading commit data... | |
trace.h | Loading commit data... | |
transaction.h | Loading commit data... | |
transport.h | Loading commit data... | |
tree.h | Loading commit data... | |
types.h | Loading commit data... | |
version.h | Loading commit data... | |
worktree.h | Loading commit data... |