Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_object_info_extended: make type calculation optional
[gitweb.git]
/
streaming.c
diff --git
a/streaming.c
b/streaming.c
index cac282f06b3751d8f316653daa79026c9633629c..870657ab5643baac23bbc4ce2a2a073a14299a5f 100644
(file)
--- a/
streaming.c
+++ b/
streaming.c
@@
-111,11
+111,11
@@
static enum input_source istream_source(const unsigned char *sha1,
unsigned long size;
int status;
+ oi->typep = type;
oi->sizep = &size;
status = sha1_object_info_extended(sha1, oi);
if (status < 0)
return stream_error;
- *type = status;
switch (oi->whence) {
case OI_LOOSE: