path: root/builtin/describe.c
diff options
authorbrian m. carlson <>2017-02-21 23:47:21 (GMT)
committerJunio C Hamano <>2017-02-22 18:12:15 (GMT)
commit5f5e936d4a2d9a9093e8e6a2501fad74bdc6c31c (patch)
treefa5d09cfb08ab5dbbb0d7c35bcf1a07ba77a30a1 /builtin/describe.c
parent8066df4194a1b108d2a7200008c39a1dcfebd8df (diff)
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 <> Signed-off-by: Jeff King <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'builtin/describe.c')
0 files changed, 0 insertions, 0 deletions