Skip to content

Commit

Permalink
Remove unnecessary git-rm --cached reference from status output
Browse files Browse the repository at this point in the history
Since git-reset has learned restoring the absence of paths git-rm --cached is
no longer necessary. Therefore remove it from the cached content header hint.

Also remove the unfortunate wording 'Cached' from the header itself.

Signed-off-by: Jürgen Rühle <j-r@online.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Jürgen Rühle authored and Junio C Hamano committed Jan 8, 2007
1 parent 515377e commit 3368d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wt-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ void wt_status_prepare(struct wt_status *s)
static void wt_status_print_cached_header(const char *reference)
{
const char *c = color(WT_STATUS_HEADER);
color_printf_ln(c, "# Cached changes to be committed:");
color_printf_ln(c, "# Changes to be committed:");
if (reference) {
color_printf_ln(c, "# (use \"git reset %s <file>...\" and \"git rm --cached <file>...\" to unstage)", reference);
color_printf_ln(c, "# (use \"git reset %s <file>...\" to unstage)", reference);
} else {
color_printf_ln(c, "# (use \"git rm --cached <file>...\" to unstage)");
}
Expand Down

0 comments on commit 3368d11

Please sign in to comment.