summaryrefslogtreecommitdiff
path: root/builtin/describe.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-02-21 23:47:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-02-22 18:12:15 (GMT)
commit5f5e936d4a2d9a9093e8e6a2501fad74bdc6c31c (patch)
treefa5d09cfb08ab5dbbb0d7c35bcf1a07ba77a30a1 /builtin/describe.c
parent8066df4194a1b108d2a7200008c39a1dcfebd8df (diff)
downloadgit-5f5e936d4a2d9a9093e8e6a2501fad74bdc6c31c.zip
git-5f5e936d4a2d9a9093e8e6a2501fad74bdc6c31c.tar.gz
git-5f5e936d4a2d9a9093e8e6a2501fad74bdc6c31c.tar.bz2
builtin/diff-tree: convert to struct object_id
Convert most leaf functions to struct object_id. Change several hardcoded numbers to uses of parse_oid_hex. In doing so, verify that we when we want two trees, we have exactly two trees. Finally, in stdin_diff_commit, avoid accessing the byte after the NUL. This will be a NUL as well, since the first NUL was a newline we overwrote. However, with parse_oid_hex, we no longer need to increment the pointer directly, and can simply increment it as part of our check for the space character. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/describe.c')
0 files changed, 0 insertions, 0 deletions