diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-10-05 13:48:19 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-05 13:48:19 +0900 |
commit | efe9d6ce33ed817150f4ff63ebfc14a3f7667eb4 (patch) | |
tree | 445ad62e5235a01002086d2009b35fb9cc16af96 /wt-status.c | |
parent | 29a67ccc89b0f105aa8e6f675649145b88b2cb0e (diff) | |
parent | efbd4fdfc9978bf3872ca8cf390da4ffa3480188 (diff) | |
download | git-efe9d6ce33ed817150f4ff63ebfc14a3f7667eb4.tar.gz |
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
Diffstat (limited to 'wt-status.c')
-rw-r--r-- | wt-status.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wt-status.c b/wt-status.c index 6f730ee8f2..29bc64cc02 100644 --- a/wt-status.c +++ b/wt-status.c @@ -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(); |