7 UI, Workflows & Features
9 * Userdiff for PHP update.
11 * Userdiff for Rust update.
13 * Userdiff for CSS update.
15 * The command line completion script (in contrib/) learned that "git
16 stash show" takes the options "git diff" takes.
18 * "git worktree list" now shows if each worktree is locked. This
19 possibly may open us to show other kinds of states in the future.
21 * "git maintenance", an extended big brother of "git gc", continues
24 * "git push --force-with-lease[=<ref>]" can easily be misused to lose
25 commits unless the user takes good care of their own "git fetch".
26 A new option "--force-if-includes" attempts to ensure that what is
27 being force-pushed was created after examining the commit at the
28 tip of the remote ref that is about to be force-replaced.
30 * "git clone" learned clone.defaultremotename configuration variable
31 to customize what nickname to use to call the remote the repository
34 * "git checkout" learned to use checkout.guess configuration variable
35 and enable/disable its "--[no-]guess" option accordingly.
37 * "git resurrect" script (in contrib/) learned that the object names
38 may be longer than 40-hex depending on the hash function in use.
40 * "git diff A...B" learned "git diff --merge-base A B", which is a
41 longer short-hand to say the same thing.
43 * A sample 'push-to-checkout' hook, that performs the same as
44 what the built-in default action does, has been added.
46 * "git diff" family of commands learned the "-I<regex>" option to
47 ignore hunks whose changed lines all match the given pattern.
49 * The userdiff pattern learned to identify the function definition in
50 POSIX shells and bash.
52 * "git checkout-index" did not consistently signal an error with its
53 exit status, but now it does.
55 * A commit and tag object may have CR at the end of each and
56 every line (you can create such an object with hash-object or
57 using --cleanup=verbatim to decline the default clean-up
58 action), but it would make it impossible to have a blank line
59 to separate the title from the body of the message. We are now
60 more lenient and accept a line with lone CR on it as a blank line,
63 * Exit codes from "git remote add" etc. were not usable by scripted
64 callers, but now they are.
66 * "git archive" now allows compression level higher than "-9"
67 when generating tar.gz output.
69 * Zsh autocompletion (in contrib/) update.
71 * The maximum length of output filenames "git format-patch" creates
72 has become configurable (used to be capped at 64).
74 * "git rev-parse" learned the "--end-of-options" to help scripts to
75 safely take a parameter that is supposed to be a revision, e.g.
76 "git rev-parse --verify -q --end-of-options $rev".
78 * The command line completion script (in contrib/) learned to expand
79 commands that are alias of alias.
81 * "git update-ref --stdin" learns to take multiple transactions in a
84 * Various subcommands of "git config" that takes value_regex
85 learn the "--literal-value" option to take the value_regex option
88 * The transport layer was taught to optionally exchange the session
89 ID assigned by the trace2 subsystem during fetch/push transactions.
91 * "git imap-send" used to ignore configuration variables like
92 core.askpass; this has been corrected.
94 * "git $cmd $args", when $cmd is not a recognised subcommand, by
95 default tries to see if $cmd is a typo of an existing subcommand
96 and optionally executes the corrected command if there is only one
97 possibility, depending on the setting of help.autocorrect; the
98 users can now disable the whole thing, including the cycles spent
99 to find a likely typo, by setting the configuration variable to
102 * "@" sometimes worked (e.g. "git push origin @:there") as a part of
103 a refspec element, but "git push origin @" did not work, which has
107 Performance, Internal Implementation, Development Support etc.
109 * Use "git archive" more to produce the release tarball.
111 * GitHub Actions automated test improvement to skip tests on a tree
112 identical to what has already been tested.
114 * Test-coverage for running commit-graph task "git maintenance" has
117 * Our test scripts can be told to run only individual pieces while
118 skipping others with the "--run=..." option; they were taught to
119 take a substring of test title, in addition to numbers, to name the
122 * Adjust tests so that they won't scream when the default initial
123 branch name is changed to 'main'.
125 * Rewriting "git bisect" in C continues.
127 * More preliminary tests have been added to document desired outcome
128 of various "directory rename" situations.
130 * Micro clean-up of a couple of test scripts.
132 * "git diff" and other commands that share the same machinery to
133 compare with working tree files have been taught to take advantage
134 of the fsmonitor data when available.
136 * The code to detect premature EOF in the sideband demultiplexer has
139 * Test scripts are being prepared to transition of the default branch
142 * "git fetch --depth=<n>" over the stateless RPC / smart HTTP
143 transport handled EOF from the client poorly at the server end.
145 * A specialization of hashmap that uses a string as key has been
146 introduced. Hopefully it will see wider use over time.
148 * "git bisect start/next" in a large span of history spends a lot of
149 time trying to come up with exactly the half-way point; this can be
150 optimized by stopping when we see a commit that is close enough to
153 * A lazily defined test prerequisite can now be defined in terms of
154 another lazily defined test prerequisite.
156 * Expectation for the original contributor after responding to a
157 review comment to use the explanation in a patch update has been
160 * Multiple "credential-store" backends can race to lock the same
161 file, causing everybody else but one to fail---reattempt locking
162 with some timeout to reduce the rate of the failure.
164 * "git-parse-remote" shell script library outlived its usefulness.
166 * Like die() and error(), a call to warning() will also trigger a
169 * Use of non-reentrant localtime() has been removed.
171 * Non-reentrant time-related library functions and ctime/asctime with
172 awkward calling interfaces are banned from the codebase.
178 * In 2.29, "--committer-date-is-author-date" option of "rebase" and
179 "am" subcommands lost the e-mail address by mistake, which has been
181 (merge 5f35edd9d7 jk/committer-date-is-author-date-fix later to maint).
183 * "git checkout -p A...B [-- <path>]" did not work, even though the
184 same command without "-p" correctly used the merge-base between
186 (merge 35166b1fb5 dl/checkout-p-merge-base later to maint).
188 * The side-band status report can be sent at the same time as the
189 primary payload multiplexed, but the demultiplexer on the receiving
190 end incorrectly split a single status report into two, which has
192 (merge 712b0377db js/avoid-split-sideband-message later to maint).
194 * "git fast-import" wasted a lot of memory when many marks were in use.
195 (merge 3f018ec716 jk/fast-import-marks-alloc-fix later to maint).
197 * A test helper "test_cmp A B" was taught to diagnose missing files A
198 or B as a bug in test, but some tests legitimately wanted to notice
199 a failure to even create file B as an error, in addition to leaving
200 the expected result in it, and were misdiagnosed as a bug. This
202 (merge 262d5ad5a5 es/test-cmp-typocatcher later to maint).
204 * When "git commit-graph" detects the same commit recorded more than
205 once while it is merging the layers, it used to die. The code now
206 ignores all but one of them and continues.
207 (merge 85102ac71b ds/commit-graph-merging-fix later to maint).
209 * The meaning of a Signed-off-by trailer can vary from project to
210 project; this and also what it means to this project has been
211 clarified in the documentation.
212 (merge 3abd4a67d9 bk/sob-dco later to maint).
214 * "git credential' didn't honor the core.askPass configuration
215 variable (among other things), which has been corrected.
216 (merge 567ad2c0f9 tk/credential-config later to maint).
218 * Dev support to catch a tentative definition of a variable in our C
220 (merge 5539183622 jk/no-common later to maint).
222 * "git rebase --rebase-merges" did not correctly pass --gpg-sign
223 command line option to underlying "git merge" when replaying a merge
224 using non-default merge strategy or when replaying an octopus merge
225 (because replaying a two-head merge with the default strategy was
226 done in a separate codepath, the problem did not trigger for most
227 users), which has been corrected.
228 (merge 43ad4f2eca sc/sequencer-gpg-octopus later to maint).
230 * "git apply -R" did not handle patches that touch the same path
231 twice correctly, which has been corrected. This is most relevant
232 in a patch that changes a path from a regular file to a symbolic
233 link (and vice versa).
234 (merge b0f266de11 jt/apply-reverse-twice later to maint).
236 * A recent oid->hash conversion missed one spot, breaking "git svn".
237 (merge 03bb366de4 bc/svn-hash-oid-fix later to maint).
239 * The documentation on the "--abbrev=<n>" option did not say the
240 output may be longer than "<n>" hexdigits, which has been
242 (merge cda34e0d0c jc/abbrev-doc later to maint).
244 * "git p4" now honors init.defaultBranch configuration.
245 (merge 1b09d1917f js/p4-default-branch later to maint).
247 * Recently the format of an internal state file "rebase -i" uses has
248 been tightened up for consistency, which would hurt those who start
249 "rebase -i" with old git and then continue with new git. Loosen
250 the reader side a bit (which we may want to tighten again in a year
252 (merge c779386182 jc/sequencer-stopped-sha-simplify later to maint).
254 * The code to see if "git stash drop" can safely remove refs/stash
255 has been made more carerful.
256 (merge 4f44c5659b rs/empty-reflog-check-fix later to maint).
258 * "git log -L<range>:<path>" is documented to take no pathspec, but
259 this was not enforced by the command line option parser, which has
261 (merge 39664cb0ac jc/line-log-takes-no-pathspec later to maint).
263 * "git format-patch --output=there" did not work as expected and
264 instead crashed. The option is now supported.
265 (merge dc1672dd10 jk/format-patch-output later to maint).
267 * Define ARM64 compiled with MSVC to be little-endian.
268 (merge 0c038fc65a dg/bswap-msvc later to maint).
270 * "git rebase -i" did not store ORIG_HEAD correctly.
271 (merge 8843302307 pw/rebase-i-orig-head later to maint).
273 * "git blame -L :funcname -- path" did not work well for a path for
274 which a userdiff driver is defined.
276 * "make DEVELOPER=1 sparse" used to run sparse and let it emit
277 warnings; now such warnings will cause an error.
278 (merge 521dc56270 jc/sparse-error-for-developer-build later to maint).
280 * "git blame --ignore-revs-file=<file>" learned to ignore a
281 non-existent object name in the input, instead of complaining.
282 (merge c714d05875 jc/blame-ignore-fix later to maint).
284 * Running "git diff" while allowing external diff in a state with
285 unmerged paths used to segfault, which has been corrected.
286 (merge d66851806f jk/diff-release-filespec-fix later to maint).
288 * Build configuration cleanup.
289 (merge b990f02fd8 ab/config-mak-uname-simplify later to maint).
291 * Fix regression introduced when nvimdiff support in mergetool was added.
292 (merge 12026f46e7 pd/mergetool-nvimdiff later to maint).
294 * The exchange between receive-pack and proc-receive hook did not
295 carefully check for errors.
297 * The code was not prepared to deal with pack .idx file that is
299 (merge 81c4c5cf2e jk/4gb-idx later to maint).
301 * Since jgit does not yet work with SHA-256 repositories, mark the
302 tests that uses it not to run unless we are testing with ShA-1
304 (merge ea699b4adc sg/t5310-jgit-wants-sha1 later to maint).
306 * Config parser fix for "git notes".
307 (merge 45fef1599a na/notes-displayref-is-not-boolean later to maint).
309 * Move a definition of compatibility wrapper from cache.h to
311 (merge a76b138daa hn/sleep-millisec-decl later to maint).
314 (merge eaf5341538 km/stash-error-message-fix later to maint).
316 * "git pull --rebase --recurse-submodules" checked for local changes
317 in a wrong range and failed to run correctly when it should.
318 (merge 5176f20ffe pb/pull-rebase-recurse-submodules later to maint).
320 * "git push" that is killed may leave a pack-objects process behind,
321 still computing to find a good compression, wasting cycles. This
323 (merge 8b59935114 jk/stop-pack-objects-when-push-is-killed later to maint).
325 * "git fetch" that is killed may leave a pack-objects process behind,
326 still computing to find a good compression, wasting cycles. This
328 (merge 309a4028e7 jk/stop-pack-objects-when-fetch-is-killed later to maint).
330 * "git add -i" failed to honor custom colors configured to show
331 patches, which has been corrected.
332 (merge 96386faa03 js/add-i-color-fix later to maint).
334 * Processes that access packdata while the .idx file gets removed
335 (e.g. while repacking) did not fail or fall back gracefully as they
337 (merge 506ec2fbda tb/idx-midx-race-fix later to maint).
339 * "git apply" adjusted the permission bits of working-tree files and
340 directories according core.sharedRepository setting by mistake and
341 for a long time, which has been corrected.
342 (merge eb3c027e17 mt/do-not-use-scld-in-working-tree later to maint).
344 * "fetch-pack" could pass NULL pointer to unlink(2) when it sees an
345 invalid filename; the error checking has been tightened to make
347 (merge 6031af387e rs/fetch-pack-invalid-lockfile later to maint).
349 * "git maintenance run/start/stop" needed to be run in a repository
350 to hold the lockfile they use, but didn't make sure they are
351 actually in a repository, which has been corrected.
353 * The glossary described a branch as an "active" line of development,
354 which is misleading---a stale and non-moving branch is still a
356 (merge eef1ceabd8 so/glossary-branch-is-not-necessarily-active later to maint).
358 * Newer versions of xsltproc can assign IDs in HTML documents it
359 generates in a consistent manner. Use the feature to help format
360 HTML version of the user manual reproducibly.
361 (merge 3569e11d69 ae/doc-reproducible-html later to maint).
363 * Tighten error checking in the codepath that responds to "git fetch".
364 (merge d43a21bdbb jk/check-config-parsing-error-in-upload-pack later to maint).
366 * Other code cleanup, docfix, build fix, etc.
367 (merge 3e0a5dc9af cc/doc-filter-branch-typofix later to maint).
368 (merge 32c83afc2c cw/ci-ghwf-check-ws-errors later to maint).
369 (merge 5eb2ed691b rs/tighten-callers-of-deref-tag later to maint).
370 (merge 6db29ab213 jk/fast-import-marks-cleanup later to maint).
371 (merge e5cf6d3df4 nk/dir-c-comment-update later to maint).
372 (merge 5710dcce74 jk/report-fn-typedef later to maint).
373 (merge 9a82db1056 en/sequencer-rollback-lock-cleanup later to maint).
374 (merge 4e1bee9a99 js/t7006-cleanup later to maint).
375 (merge f5bcde6c58 es/tutorial-mention-asciidoc-early later to maint).
376 (merge 714d491af0 so/format-patch-doc-on-default-diff-format later to maint).
377 (merge 0795df4b9b rs/clear-commit-marks-in-repo later to maint).
378 (merge 9542d56379 sd/prompt-local-variable later to maint).
379 (merge 06d43fad18 rs/pack-write-hashwrite-simplify later to maint).
380 (merge b7e20b4373 mc/typofix later to maint).
381 (merge f6bcd9a8a4 js/test-whitespace-fixes later to maint).
382 (merge 53b67a801b js/test-file-size later to maint).
383 (merge 970909c2a7 rs/hashwrite-be64 later to maint).
384 (merge 5a923bb1f0 ma/list-object-filter-opt-msgfix later to maint).
385 (merge 1c3e412916 rs/archive-plug-leak-refname later to maint).
386 (merge d44e5267ea rs/plug-diff-cache-leak later to maint).
387 (merge 793c1464d3 ab/gc-keep-base-option later to maint).
388 (merge b86339b12b mt/worktree-error-message-fix later to maint).
389 (merge e01ae2a4a7 js/pull-rebase-use-advise later to maint).
390 (merge e63d774242 sn/config-doc-typofix later to maint).
391 (merge 08e9df2395 jk/multi-line-indent-style-fix later to maint).
392 (merge e66590348a da/vs-build-iconv-fix later to maint).
393 (merge 7fe07275be js/cmake-extra-built-ins-fix later to maint).
394 (merge 633eebe142 jb/midx-doc-update later to maint).
395 (merge 5885367e8f jh/index-v2-doc-on-fsmn later to maint).
396 (merge 14639a4779 jc/compat-util-setitimer-fix later to maint).
397 (merge 56f56ac50b ab/unreachable-break later to maint).
398 (merge 731d578b4f rb/nonstop-config-mak-uname-update later to maint).
399 (merge f4698738f9 es/perf-export-fix later to maint).