Skip to content

Update advice in commit/status output

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3commit/status: check $GIT_DIR/MERGE_HEAD only oncebuiltin-commit.c+4 -60 replies
2/3commit/status: "git add <path>" is not necessarily how to resolvet/t7060-wtstatus.sh wt-status.c+2 -23 replies
3/3status/commit: do not suggest "reset HEAD <path>" while mergingbuiltin-commit.c t/t7060-wtstatus.sh wt-status.c +1 more+13 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Update advice in commit/status output

Jay Soffian noticed that we give "git reset HEAD <path>" as an instruction to get rid of the local change that has already been added to the index even when <path> is unmerged, or it is merged and we are about to commit a merge.

In neither case, "git reset HEAD <path>" is absolutely a wrong thing to do while merging.

This miniseries updates the advices given in status/commit. It applies on top of the jk/1.7.0-status topic, and has trivial conflicts in wt-status.c with the jk/unwanted-advices topic that has already graduated to 'maint'.

Junio C Hamano (3):
commit/status: check $GIT_DIR/MERGE_HEAD only once commit/status: "git add <path>" is not necessarily how to resolve status/commit: do not suggest "reset HEAD <path>" while merging

 builtin-commit.c    |   12 ++++++------
 t/t7060-wtstatus.sh |    3 +--
 wt-status.c         |   16 +++++++++++-----
 wt-status.h         |    1 +
 4 files changed, 19 insertions(+), 13 deletions(-)