git/hex.c

#define USE_THE_REPOSITORY_VARIABLE

#include "git-compat-util.h"
#include "hash.h"
#include "hex.h"

static int get_hash_hex_algop(const char *hex, unsigned char *hash,
			      const struct git_hash_algo *algop)
{}

int get_hash_hex(const char *hex, unsigned char *sha1)
{}

int get_oid_hex_algop(const char *hex, struct object_id *oid,
		      const struct git_hash_algo *algop)
{}

/*
 * NOTE: This function relies on hash algorithms being in order from shortest
 * length to longest length.
 */
int get_oid_hex_any(const char *hex, struct object_id *oid)
{}

int get_oid_hex(const char *hex, struct object_id *oid)
{}

int parse_oid_hex_algop(const char *hex, struct object_id *oid,
			const char **end,
			const struct git_hash_algo *algop)
{}

int parse_oid_hex_any(const char *hex, struct object_id *oid, const char **end)
{}

int parse_oid_hex(const char *hex, struct object_id *oid, const char **end)
{}

char *hash_to_hex_algop_r(char *buffer, const unsigned char *hash,
			  const struct git_hash_algo *algop)
{}

char *oid_to_hex_r(char *buffer, const struct object_id *oid)
{}

char *hash_to_hex_algop(const unsigned char *hash, const struct git_hash_algo *algop)
{}

char *hash_to_hex(const unsigned char *hash)
{}

char *oid_to_hex(const struct object_id *oid)
{}