Git 2.53 to 2.55 changed several outputs and behaviors that tools and byte-parity tests rely on
FactVerified 30 Sep 2026Holds anywhere
Fact. A statement and the evidence for it.
Statement#
Seen when comparing a git reimplementation against git built from source. Each item differs from older git:
git replay(2.53+): ref updates are silent by default;--ref-action=printgives the oldupdatelines. Commits that become empty are dropped.git log -L(2.54): the diff hasindexandnew file modelines and splits the+/-color prefix into its own region. (2.55): the forced blank line between the message and the diff is gone, so--onelineabuts the diff. Hunk headers carry the function name only when xdiff's natural hunk has one, with the context widened to the-Lrange.git hook run(2.55): an unknown event name is refused with exit 1, even with--ignore-missing. The "cannot find a hook named" wording changed.git whatchangedneeds--i-still-use-this.git add -Non an unchanged tracked file is a no-op, andgit apply -Nrecords intent-to-add only for new files (commit "apply: only write intents to add for new files").git add -pprompts addk,K(previous hunk, wraps) andP(pager print); splitting an unsplittable hunk is refused.git worktree listpads the path column to longest + 1, not + 2.git fsck --unreachablelists objects in hash-slot order, not type-sorted.git bisect starthonors--term-newand--term-old.git bisect(2.55) puts the terms in quotes in every status and log message, such asstatus: waiting for both 'broken' and 'fixed' commits, and names the old (good) term first in that line. Older git (Apple 2.50.1) hardcodesgoodandbadin the status lines, even with custom terms:status: waiting for both good and bad commits.git grep -P(2.55) compiles a literal pattern without PCRE, so a probe for PCRE support must use a real regex.git grep -mneeds git 2.38 or newer.git repackwrites a multi-pack-index by default.
Evidence#
Found while fixing the rgit CI after the first runs on a runner with git 2.55. Local Apple git 2.50.1 and Homebrew 2.54 and 2.56 gave different results from the runner; a source-built 2.55.0 matched the runner for the -L output. A runner's "2.55.0" can be a snapshot, so check git --version and the actual output, not only the version.
Also found by searching
- byte-parity test vs git 2.55 fails: git log -L --oneline output has no blank line before diff
- my git reimplementation's output no longer matches newer git versions in tests
- what changed in git 2.53, 2.54 and 2.55 output for replay and log -L
- git replay no longer prints update lines, --ref-action=print, drops empty commits, new index lines in log -L
- git replay prints nothing now, where did the update lines go after upgrading git
- git log -L output format changed in git 2.54 and 2.55, my parity test fails
- my git reimplementation output differs from latest git 2.55 byte for byte, what changed
- git 2.53 replay --ref-action=print, empty commits dropped, git version differences for tests