Ray's Knowledge Base
Unlock

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=print gives the old update lines. Commits that become empty are dropped.
  • git log -L (2.54): the diff has index and new file mode lines and splits the +/- color prefix into its own region. (2.55): the forced blank line between the message and the diff is gone, so --oneline abuts the diff. Hunk headers carry the function name only when xdiff's natural hunk has one, with the context widened to the -L range.
  • 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 whatchanged needs --i-still-use-this.
  • git add -N on an unchanged tracked file is a no-op, and git apply -N records intent-to-add only for new files (commit "apply: only write intents to add for new files").
  • git add -p prompts add k,K (previous hunk, wraps) and P (pager print); splitting an unsplittable hunk is refused.
  • git worktree list pads the path column to longest + 1, not + 2.
  • git fsck --unreachable lists objects in hash-slot order, not type-sorted.
  • git bisect start honors --term-new and --term-old.
  • git bisect (2.55) puts the terms in quotes in every status and log message, such as status: waiting for both 'broken' and 'fixed' commits, and names the old (good) term first in that line. Older git (Apple 2.50.1) hardcodes good and bad in 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 -m needs git 2.38 or newer.
  • git repack writes 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