Git 2.51.1

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Oct 15, 2025 at 10:28 UTC 81f86aacc4eb74cdb9c2c8082d36d2070c666045
2 files changed +54 -1
Documentation/RelNotes/2.51.1.adoc
+53
@@ -43,4 +43,57 @@ Fixes since Git 2.51.0
43 * Adjust to the way newer versions of cURL selectively enable tracing
44 options, so that our tests can continue to work.
45
46 + * During interactive rebase, using 'drop' on a merge commit led to
47 + an error, which has been corrected.
48 +
49 + * "git refs migrate" to migrate the reflog entries from a refs
50 + backend to another had a handful of bugs squashed.
51 +
52 + * "git push" had a code path that led to BUG() but it should have
53 + been a die(), as it is a response to a usual but invalid end-user
54 + action to attempt pushing an object that does not exist.
55 +
56 + * Various bugs about rename handling in "ort" merge strategy have
57 + been fixed.
58 +
59 + * "git diff --no-index" run inside a subdirectory under control of a
60 + Git repository operated at the top of the working tree and stripped
61 + the prefix from the output, and oddballs like "-" (stdin) did not
62 + work correctly because of it. Correct the set-up by undoing what
63 + the set-up sequence did to cwd and prefix.
64 +
65 + * Various options to "git diff" that make comparison ignore certain
66 + aspects of the differences (like "space changes are ignored",
67 + "differences in lines that match these regular expressions are
68 + ignored") did not work well with "--name-only" and friends.
69 +
70 + * Under a race against another process that is repacking the
71 + repository, especially a partially cloned one, "git fetch" may
72 + mistakenly think some objects we do have are missing, which has
73 + been corrected.
74 +
75 + * "git repack --path-walk" lost objects in some corner cases, which
76 + has been corrected.
77 + cf. <CABPp-BHFxxGrqKc0m==TjQNjDGdO=H5Rf6EFsf2nfE1=TuraOQ@mail.gmail.com>
78 +
79 + * Fixes multiple crashes around midx write-out codepaths.
80 +
81 + * A broken or malicious "git fetch" can say that it has the same
82 + object for many many times, and the upload-pack serving it can
83 + exhaust memory storing them redundantly, which has been corrected.
84 +
85 + * A corner case bug in "git log -L..." has been corrected.
86 +
87 + * Some among "git add -p" and friends ignored color.diff and/or
88 + color.ui configuration variables, which is an old regression, which
89 + has been corrected.
90 +
91 + * "git rebase -i" failed to clean-up the commit log message when the
92 + command commits the final one in a chain of "fixup" commands, which
93 + has been corrected.
94 +
95 + * Deal more gracefully with directory / file conflicts when the files
96 + backend is used for ref storage, by failing only the ones that are
97 + involved in the conflict while allowing others.
98 +
99 Also contains various documentation updates, code cleanups and minor fixups.
GIT-VERSION-GEN
+1 -1
@@ -1,6 +1,6 @@
1 #!/bin/sh
2
3 -DEF_VER=v2.51.0
3 +DEF_VER=v2.51.1
4
5 LF='
6 '