Merge branch 'rs/resolve-ref-optional-result'
Code clean-up. * rs/resolve-ref-optional-result: refs: pass NULL to resolve_refdup() if hash is not needed refs: pass NULL to refs_resolve_refdup() if hash is not needed
This commit is contained in:
@ -121,15 +121,13 @@ static void status_printf_more(struct wt_status *s, const char *color,
|
||||
|
||||
void wt_status_prepare(struct wt_status *s)
|
||||
{
|
||||
struct object_id oid;
|
||||
|
||||
memset(s, 0, sizeof(*s));
|
||||
memcpy(s->color_palette, default_wt_status_colors,
|
||||
sizeof(default_wt_status_colors));
|
||||
s->show_untracked_files = SHOW_NORMAL_UNTRACKED_FILES;
|
||||
s->use_color = -1;
|
||||
s->relative_paths = 1;
|
||||
s->branch = resolve_refdup("HEAD", 0, oid.hash, NULL);
|
||||
s->branch = resolve_refdup("HEAD", 0, NULL, NULL);
|
||||
s->reference = "HEAD";
|
||||
s->fp = stdout;
|
||||
s->index_file = get_index_file();
|
||||
|
||||
Reference in New Issue
Block a user