[QUESTION] how to quickly find an oid in the git repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When I tried to make cat-file --batch use ref-filter logic,
I encountered this problem:

get_oid_with_context() does not really let me know
if an oid is in the git repository. E.g.

get_oid_with_context(the_repository,
"0000000000000000000000000000000000000000",...)

will return FOUND. (I really want it to tell me MISSING_OBJECT
or something else)

On the other hand, oid_object_info_extended() will parse an object
in depth, using it will seriously affect performance. So I want to know
if there is a function that can quickly find the oid? I searched in
`object-name.c`, `object-file.c`, and there seems to be no clue...

--
ZheNing Hu



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux