diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-05-12 16:50:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-16 22:13:34 -0700 |
commit | b9a62cbeb91e52aea8fc427a84e72f475dfe60cf (patch) | |
tree | 3ff64286b90eb6df7821309f0b69866fe406bbfd /sha1_file.c | |
parent | 02071b27f1587c65ddc4779017a3ddceb777de9c (diff) | |
download | git-b9a62cbeb91e52aea8fc427a84e72f475dfe60cf.tar.gz |
packed_object_info_detail(): do not return a string
Instead return an integer that can be given to typename() if
the caller wants a string, just like everybody else does.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sha1_file.c b/sha1_file.c index 064a330408..4f96eb1a3e 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1549,7 +1549,7 @@ static int unpack_object_header(struct packed_git *p, return type; } -const char *packed_object_info_detail(struct packed_git *p, +int packed_object_info_detail(struct packed_git *p, off_t obj_offset, unsigned long *size, unsigned long *store_size, @@ -1580,7 +1580,7 @@ const char *packed_object_info_detail(struct packed_git *p, case OBJ_BLOB: case OBJ_TAG: unuse_pack(&w_curs); - return typename(type); + return type; case OBJ_OFS_DELTA: obj_offset = get_delta_base(p, &w_curs, &curpos, type, obj_offset); if (!obj_offset) |