commit: convert parts to struct object_id
Convert struct commit_graft and necessary local parts of commit.c. Also, convert several constants based on the hex length of an SHA-1 to use GIT_SHA1_HEXSZ, and move several magic constants into variables for readability. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
1ff57c13c5
commit
7683e2e6e3
@ -182,7 +182,7 @@ static int advertise_shallow_grafts_cb(const struct commit_graft *graft, void *c
|
||||
{
|
||||
struct strbuf *sb = cb;
|
||||
if (graft->nr_parent == -1)
|
||||
packet_buf_write(sb, "shallow %s\n", sha1_to_hex(graft->sha1));
|
||||
packet_buf_write(sb, "shallow %s\n", oid_to_hex(&graft->oid));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user