expose a helper function peel_to_type().
[gitweb.git] / wt-status.c
index f14022f2a9b8ce740067f7c6bf03bd51203cf2ca..0b060934e218f1d6fb95777ea7dd7faef1c2dd93 100644 (file)
@@ -60,7 +60,7 @@ static void wt_status_print_cached_header(struct wt_status *s)
 {
        const char *c = color(WT_STATUS_HEADER);
        color_fprintf_ln(s->fp, c, "# Changes to be committed:");
-       if (s->reference) {
+       if (!s->is_initial) {
                color_fprintf_ln(s->fp, c, "#   (use \"git reset %s <file>...\" to unstage)", s->reference);
        } else {
                color_fprintf_ln(s->fp, c, "#   (use \"git rm --cached <file>...\" to unstage)");