)]}'
{
  "commit": "a1b5e525f7d90534193e390bf1f34b9be0dbae97",
  "tree": "77c1115ccd1097f5ff0858d1e61ccb5af456648a",
  "parents": [
    "9c360fb232c312aec388ee5027537673421bff77"
  ],
  "author": {
    "name": "ifrade",
    "email": "ifrade@google.com",
    "time": "Wed Nov 25 15:02:00 2026 -0800"
  },
  "committer": {
    "name": "ifrade",
    "email": "ifrade@google.com",
    "time": "Mon Nov 30 09:54:41 2026 -0800"
  },
  "message": "PersonIdent, ReflogWriter: sanitize NUL and reflog CR\n\nPersonIdent.appendSanitized() removed LF, \u0027\u003c\u0027 and \u0027\u003e\u0027 but kept NUL\n(0x00), which git fsck rejects in commit and tag headers.\n\nReflogWriter.encode() replaced CRLF and LF in the reflog message with a\nspace, but kept bare CR (0x0D) and NUL in both the formatted identity\nand the message. Line-oriented readers such as BufferedReader.readLine()\ntreat a bare CR as a line terminator, which can split a reflog entry\nacross multiple lines.\n\n- PersonIdent.appendSanitized(): also drop NUL while keeping CR to stay\n  in line with C git\u0027s strbuf_addstr_without_crud() for CommitBuilder\n  and TagBuilder.\n- ReflogWriter.encode(): strip CR, LF and NUL from the formatted\n  identity via appendSanitizedIdent(), and sanitize the message in a\n  single pass via appendSanitizedMessage(), replacing CRLF, LF and bare\n  CR with a space and dropping NUL.\n\nChange-Id: Iab5cbb510f205b7de3f6d60c9f0aa30b6a6a6964\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a8363336d9bb9272411a73da56ba4fbd5ac5a9fc",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ReflogWriterTest.java",
      "new_id": "bb9e2f88575baaa7e8c24654cbe57494e947efd7",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ReflogWriterTest.java"
    },
    {
      "type": "modify",
      "old_id": "943a68b82ceed12cc5d81865b875898c6109361e",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/PersonIdentTest.java",
      "new_id": "d59156e4aaaf9d1594ad7308f473955efed3cbd7",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/PersonIdentTest.java"
    },
    {
      "type": "modify",
      "old_id": "b1ceb148093fee5b2a8da31ac4b5c0c01d696898",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ReflogWriter.java",
      "new_id": "52a56658f72788cf609006a25f30ad7b8531caf4",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ReflogWriter.java"
    },
    {
      "type": "modify",
      "old_id": "50f4a83b93787303c3fd92b25c5cf6857b5d0e41",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java",
      "new_id": "38050c23af3f47870d39a4e7ff0337b28d08e1fd",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java"
    }
  ]
}
