unsigned char sha1[20];
const char *head;
+ memset(s, 0, sizeof(*s));
head = resolve_ref("HEAD", sha1, 0, NULL);
s->branch = head ? xstrdup(head) : NULL;
-
s->reference = "HEAD";
- s->amend = 0;
- s->verbose = 0;
- s->untracked = 0;
-
- s->commitable = 0;
- s->workdir_dirty = 0;
- s->workdir_untracked = 0;
}
static void wt_status_print_cached_header(const char *reference)
wt_status_use_color = git_config_colorbool(k, v);
return 0;
}
- if (!strncmp(k, "status.color.", 13) || !strncmp(k, "color.status", 13)) {
+ if (!strncmp(k, "status.color.", 13) || !strncmp(k, "color.status.", 13)) {
int slot = parse_status_slot(k, 13);
color_parse(v, k, wt_status_colors[slot]);
}