diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-03-12 02:27:45 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-14 09:23:49 -0700 |
commit | 7984f23833d1c1b8d7d5d863ed8c42b67e0a0fba (patch) | |
tree | f48aae71b77a87cdbce8d9c0bfd5bc1aa39c42cf /streaming.c | |
parent | 4310b0c441e51fbba13888cb1373d27efcc018ef (diff) | |
download | git-7984f23833d1c1b8d7d5d863ed8c42b67e0a0fba.tar.gz |
Convert remaining callers of sha1_object_info_extended to object_id
Convert the remaining caller of sha1_object_info_extended to use struct
object_id. Introduce temporaries, which will be removed later, since
there is a dependency loop between sha1_object_info_extended and
lookup_replace_object_extended. This allows us to convert the code in a
piecemeal fashion instead of all at once.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'streaming.c')
-rw-r--r-- | streaming.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/streaming.c b/streaming.c index be85507922..042d6082e8 100644 --- a/streaming.c +++ b/streaming.c @@ -111,10 +111,13 @@ static enum input_source istream_source(const unsigned char *sha1, { unsigned long size; int status; + struct object_id oid; + + hashcpy(oid.hash, sha1); oi->typep = type; oi->sizep = &size; - status = sha1_object_info_extended(sha1, oi, 0); + status = sha1_object_info_extended(oid.hash, oi, 0); if (status < 0) return stream_error; |