Skip to content

git-commit rejects messages with NULs

Nguyễn Thái Ngọc Duy git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Make commit_tree() take message length in addition to the commit messagebuiltin/commit-tree.c builtin/commit.c builtin/merge.c +6 more+14 -145 replies
2/3merge: abort if fails to commitbuiltin/merge.c+6 -21 reply
3/3Do not create commits whose message contains NULDocumentation/config.txt advice.c advice.h +3 more+22 -07 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] git-commit rejects messages with NULs

Hi,

I'm sorry I forgot the patch that makes commit_tree() take message length. This version rewords the error message and use memchr() instead.

Nguyễn Thái Ngọc Duy (3):
Make commit_tree() take message length in addition to the commit
message
merge: abort if fails to commit
Do not create commits whose message contains NUL

 Documentation/config.txt |    4 ++++
 advice.c                 |    2 ++
 advice.h                 |    1 +
 builtin/commit-tree.c    |    2 +-
 builtin/commit.c         |    2 +-
 builtin/merge.c          |    8 ++++++--
 builtin/notes.c          |    2 +-
 commit.c                 |   13 +++++++++++--
 commit.h                 |    2 +-
 notes-cache.c            |    2 +-
 notes-merge.c            |    8 ++++----
 notes-merge.h            |    2 +-
 t/t3900-i18n-commit.sh   |    6 ++++++
 t/t3900/UTF-16.txt       |  Bin 0 -> 32 bytes
 14 files changed, 40 insertions(+), 14 deletions(-)
 create mode 100644 t/t3900/UTF-16.txt
Signature · 1 line
1.7.8.36.g69ee2