Skip to content

"commit --template" fixes

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3t7501: test the right kind of breakaget/t7501-commit.sh+2 -00 replies
2/3commit: do not trigger bogus "has templated message edited" checkbuiltin/commit.c t/t7501-commit.sh+8 -00 replies
3/3commit: rephrase the error when user did not touch templated log messagebuiltin/commit.c t/t7501-commit.sh+47 -190 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchJunio C HamanoIvan Heffner
SeriesHelped-by Helped-by Helped-by Helped-by
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] "commit --template" fixes

When the user exited editor without editing the commit log template given by "git commit -t <template>", the commit was aborted (correct) with an error message that said "due to empty commit message" (incorrect). The goal of this series is to fix this, which is the third patch.

While looking at this, I found another bug that the contents of the template file is still used for error checking even when it is ignored when the editor is populated for the user to edit. The second patch addresses this.

Junio C Hamano (3):
t7501: test the right kind of breakage
commit: do not trigger bogus "has templated message edited" check
commit: rephrase the error when user did not touch templated log message

 builtin/commit.c  |   62 +++++++++++++++++++++++++++++++++++++----------------
 t/t7501-commit.sh |   14 ++++++++++++
 2 files changed, 57 insertions(+), 19 deletions(-)
Signature · 1 line
1.7.10.rc3.55.g06e99