mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Convert remaining callers of resolve_refdup to object_id
There are a few leaf functions in various files that call resolve_refdup. Convert these functions to use struct object_id internally to prepare for transitioning resolve_refdup itself. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
52684310ba
commit
2928325fc0
@@ -121,7 +121,7 @@ static void status_printf_more(struct wt_status *s, const char *color,
|
||||
|
||||
void wt_status_prepare(struct wt_status *s)
|
||||
{
|
||||
unsigned char sha1[20];
|
||||
struct object_id oid;
|
||||
|
||||
memset(s, 0, sizeof(*s));
|
||||
memcpy(s->color_palette, default_wt_status_colors,
|
||||
@@ -129,7 +129,7 @@ void wt_status_prepare(struct wt_status *s)
|
||||
s->show_untracked_files = SHOW_NORMAL_UNTRACKED_FILES;
|
||||
s->use_color = -1;
|
||||
s->relative_paths = 1;
|
||||
s->branch = resolve_refdup("HEAD", 0, sha1, NULL);
|
||||
s->branch = resolve_refdup("HEAD", 0, oid.hash, NULL);
|
||||
s->reference = "HEAD";
|
||||
s->fp = stdout;
|
||||
s->index_file = get_index_file();
|
||||
|
||||
Reference in New Issue
Block a user