#include "ui-shared.h"
#include "argv-array.h"
-int files, add_lines, rem_lines;
+static int files, add_lines, rem_lines;
/*
* The list of available column colors in the commit graph.
static const char *disambiguate_ref(const char *ref, int *must_free_result)
{
- unsigned char sha1[20];
+ struct object_id oid;
struct strbuf longref = STRBUF_INIT;
strbuf_addf(&longref, "refs/heads/%s", ref);
- if (get_sha1(longref.buf, sha1) == 0) {
+ if (get_sha1(longref.buf, oid.hash) == 0) {
*must_free_result = 1;
return strbuf_detach(&longref, NULL);
}