sha1_file: introduce has_object_file helper.
Add has_object_file, which is a wrapper around has_sha1_file, but for struct object_id. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:
committed by
Jeff King
parent
0c83680e9c
commit
b419aa25d5
3
cache.h
3
cache.h
@ -1030,6 +1030,9 @@ static inline int has_sha1_file(const unsigned char *sha1)
|
||||
return has_sha1_file_with_flags(sha1, 0);
|
||||
}
|
||||
|
||||
/* Same as the above, except for struct object_id. */
|
||||
extern int has_object_file(const struct object_id *oid);
|
||||
|
||||
/*
|
||||
* Return true iff an alternate object database has a loose object
|
||||
* with the specified name. This function does not respect replace
|
||||
|
||||
Reference in New Issue
Block a user