Browse Source

Clarify syntax and role of git-add in status output

This uses the actual (simplified) synopsis line from the git-add man page and
advertises its incremental nature.

Signed-off-by: Jürgen Rühle <j-r@online.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Jürgen Rühle 18 years ago committed by Junio C Hamano
parent
commit
e54eef9e1f
  1. 2
      wt-status.c

2
wt-status.c

@ -15,7 +15,7 @@ static char wt_status_colors[][COLOR_MAXLEN] = { @@ -15,7 +15,7 @@ static char wt_status_colors[][COLOR_MAXLEN] = {
"\033[31m", /* WT_STATUS_CHANGED: red */
"\033[31m", /* WT_STATUS_UNTRACKED: red */
};
static const char* use_add_msg = "use \"git add file1 file2\" to include for commit";
static const char* use_add_msg = "use \"git add <file>...\" to incrementally add content to commit";

static int parse_status_slot(const char *var, int offset)
{

Loading…
Cancel
Save