commit/status: "git add <path>" is not necessarily how to resolve
When the desired resolution is to remove the path, "git rm <path>" is the command the user needs to use. Just like in "Changed but not updated" section, suggest to use "git add/rm" as appropriate. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
309883015f
commit
dd20f8af1a
@ -32,7 +32,7 @@ cat >expect <<EOF
|
|||||||
# On branch side
|
# On branch side
|
||||||
# Unmerged paths:
|
# Unmerged paths:
|
||||||
# (use "git reset HEAD <file>..." to unstage)
|
# (use "git reset HEAD <file>..." to unstage)
|
||||||
# (use "git add <file>..." to mark resolution)
|
# (use "git add/rm <file>..." as appropriate to mark resolution)
|
||||||
#
|
#
|
||||||
# deleted by us: foo
|
# deleted by us: foo
|
||||||
#
|
#
|
||||||
|
@ -52,7 +52,7 @@ static void wt_status_print_unmerged_header(struct wt_status *s)
|
|||||||
color_fprintf_ln(s->fp, c, "# (use \"git reset %s <file>...\" to unstage)", s->reference);
|
color_fprintf_ln(s->fp, c, "# (use \"git reset %s <file>...\" to unstage)", s->reference);
|
||||||
else
|
else
|
||||||
color_fprintf_ln(s->fp, c, "# (use \"git rm --cached <file>...\" to unstage)");
|
color_fprintf_ln(s->fp, c, "# (use \"git rm --cached <file>...\" to unstage)");
|
||||||
color_fprintf_ln(s->fp, c, "# (use \"git add <file>...\" to mark resolution)");
|
color_fprintf_ln(s->fp, c, "# (use \"git add/rm <file>...\" as appropriate to mark resolution)");
|
||||||
color_fprintf_ln(s->fp, c, "#");
|
color_fprintf_ln(s->fp, c, "#");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user