diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-03-26 16:01:29 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-28 09:59:33 -0700 |
commit | 9c44ea440323e35e4a234d0d27d511e9b4d8dc21 (patch) | |
tree | 20d8b7b083d963188c2a89b4bd1168157cdb12d3 /ll-merge.c | |
parent | builtin/pull: convert portions to struct object_id (diff) | |
download | tgif-9c44ea440323e35e4a234d0d27d511e9b4d8dc21.tar.xz |
builtin/receive-pack: convert portions to struct object_id
Convert some hardcoded constants into uses of parse_oid_hex.
Additionally, convert all uses of struct command, and miscellaneous
other functions necessary for that. This work is necessary to be able
to convert sha1_array_append later on.
To avoid needing to specify a constant, reject shallow lines with the
wrong length instead of simply ignoring them.
Note that in queue_command we are guaranteed to have a NUL-terminated
buffer or at least one byte of overflow that we can safely read, so the
linelen check can be elided. We would die in such a case, but not read
invalid memory.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'll-merge.c')
0 files changed, 0 insertions, 0 deletions