Merge branch 'nd/get-oid-with-context-returns-an-enum'
* nd/get-oid-with-context-returns-an-enum: get_oid_with_context(): match prototype and implementation
This commit is contained in:
commit
c73472a8de
@ -1820,9 +1820,11 @@ void maybe_die_on_misspelt_object_name(const char *name, const char *prefix)
|
|||||||
prefix, &oid, &oc);
|
prefix, &oid, &oc);
|
||||||
}
|
}
|
||||||
|
|
||||||
int get_oid_with_context(struct repository *repo, const char *str,
|
enum get_oid_result get_oid_with_context(struct repository *repo,
|
||||||
unsigned flags, struct object_id *oid,
|
const char *str,
|
||||||
struct object_context *oc)
|
unsigned flags,
|
||||||
|
struct object_id *oid,
|
||||||
|
struct object_context *oc)
|
||||||
{
|
{
|
||||||
if (flags & GET_OID_FOLLOW_SYMLINKS && flags & GET_OID_ONLY_TO_DIE)
|
if (flags & GET_OID_FOLLOW_SYMLINKS && flags & GET_OID_ONLY_TO_DIE)
|
||||||
BUG("incompatible flags for get_sha1_with_context");
|
BUG("incompatible flags for get_sha1_with_context");
|
||||||
|
Loading…
Reference in New Issue
Block a user