7 Backward compatibility notes
9 * The "--preserve-merges" option of "git rebase" has been removed.
12 UI, Workflows & Features
14 * Pathname expansion (like "~username/") learned a way to specify a
15 location relative to Git installation (e.g. its $sharedir which is
16 $(prefix)/share), with "%(prefix)".
18 * Use `ort` instead of `recursive` as the default merge strategy.
20 * The userdiff pattern for "java" language has been updated.
22 * "git rebase" by default skips changes that are equivalent to
23 commits that are already in the history the branch is rebased onto;
24 give messages when this happens to let the users be aware of
25 skipped commits, and also teach them how to tell "rebase" to keep
28 * The advice message that "git cherry-pick" gives when it asks
29 conflicted replay of a commit to be resolved by the end user has
32 * After "git clone --recurse-submodules", all submodules are cloned
33 but they are not by default recursed into by other commands. With
34 submodule.stickyRecursiveClone configuration set, submodule.recurse
35 configuration is set to true in a repository created by "clone"
36 with "--recurse-submodules" option.
38 * The logic for auto-correction of misspelt subcommands learned to go
39 interactive when the help.autocorrect configuration variable is set
42 * "git maintenance" scheduler learned to use systemd timers as a
45 * "git diff --submodule=diff" showed failure from run_command() when
46 trying to run diff inside a submodule, when the user manually
47 removes the submodule directory.
49 * "git bundle unbundle" learned to show progress display.
51 * In cone mode, the sparse-index code path learned to remove ignored
52 files (like build artifacts) outside the sparse cone, allowing the
53 entire directory outside the sparse cone to be removed, which is
54 especially useful when the sparse patterns change.
56 * Taking advantage of the CGI interface, http-backend has been
57 updated to enable protocol v2 automatically when the other side
60 * The credential-cache helper has been adjusted to Windows.
62 * The error in "git help no-such-git-command" is handled better.
64 * The unicode character width table (used for output alignment) has
67 * The ref iteration code used to optionally allow dangling refs to be
68 shown, which has been tightened up.
70 * "git add", "git mv", and "git rm" have been adjusted to avoid
71 updating paths outside of the sparse-checkout definition unless
72 the user specifies a "--sparse" option.
74 * "git repack" has been taught to generate multi-pack reachability
77 * "git fsck" has been taught to report mismatch between expected and
78 actual types of an object better.
80 * Use ssh public crypto for object and push-cert signing.
82 * "git log --grep=string --author=name" learns to highlight hits just
83 like "git grep string" does.
87 Performance, Internal Implementation, Development Support etc.
89 * "git bisect" spawned "git show-branch" only to pretty-print the
90 title of the commit after checking out the next version to be
91 tested; this has been rewritten in C.
93 * "git add" can work better with the sparse index.
95 * Support for ancient versions of cURL library (pre 7.19.4) has been
98 * A handful of tests that assumed implementation details of files
99 backend for refs have been cleaned up.
101 * trace2 logs learned to show parent process name to see in what
102 context Git was invoked.
104 * Loading of ref tips to prepare for common ancestry negotiation in
105 "git fetch-pack" has been optimized by taking advantage of the
106 commit graph when available.
108 * Remind developers that the userdiff patterns should be kept simple
109 and permissive, assuming that the contents they apply are always
110 syntactically correct.
112 * The current implementation of GIT_TEST_FAIL_PREREQS is broken in
113 that checking for the lack of a prerequisite would not work. Avoid
114 the use of "if ! test_have_prereq X" in a test script.
116 * The revision traversal API has been optimized by taking advantage
117 of the commit-graph, when available, to determine if a commit is
118 reachable from any of the existing refs.
120 * "git fetch --quiet" optimization to avoid useless computation of
121 info that will never be displayed.
123 * Callers from older advice_config[] based API has been updated to
124 use the newer advice_if_enabled() and advice_enabled() API.
126 * Teach "test_pause" and "debug" helpers to allow using the HOME and
127 TERM environment variables the user usually uses.
129 * "make INSTALL_STRIP=-s install" allows the installation step to use
130 "install -s" to strip the binaries as they get installed.
132 * Code that handles large number of refs in the "git fetch" code
133 path has been optimized.
135 * The reachability bitmap file used to be generated only for a single
136 pack, but now we've learned to generate bitmaps for history that
137 span across multiple packfiles.
139 * The code to make "git grep" recurse into submodules has been
140 updated to migrate away from the "add submodule's object store as
141 an alternate object store" mechanism (which is suboptimal).
143 * The tracing of process ancestry information has been enhanced.
145 * Reduce number of write(2) system calls while sending the
148 * Update the build procedure to use the "-pedantic" build when
149 DEVELOPER makefile macro is in effect.
151 * Large part of "git submodule add" gets rewritten in C.
153 * The run-command API has been updated so that the callers can easily
154 ask the file descriptors open for packfiles to be closed immediately
155 before spawning commands that may trigger auto-gc.
157 * An oddball OPTION_ARGUMENT feature has been removed from the
160 * The mergesort implementation used to sort linked list has been
163 * Remove external declaration of functions that no longer exist.
165 * "git multi-pack-index write --bitmap" learns to propagate the
166 hashcache from original bitmap to resulting bitmap.
168 * CI learns to run the leak sanitizer builds.
170 * "git grep --recurse-submodules" takes trees and blobs from the
171 submodule repository, but the textconv settings when processing a
172 blob from the submodule is not taken from the submodule repository.
173 A test is added to demonstrate the issue, without fixing it.
175 * Teach "git help -c" into helping the command line completion of
176 configuration variables.
178 * When "git cmd -h" shows more than one line of usage text (e.g.
179 the cmd subcommand may take sub-sub-command), parse-options API
180 learned to align these lines, even across i18n/l10n.
182 * Prevent "make sparse" from running for the source files that
183 haven't been modified.
185 * The codepath to write a new version of .midx multi-pack index files
186 has learned to release the mmaped memory holding the current
187 version of .midx before removing them from the disk, as some
188 platforms do not allow removal of a file that still has mapping.
190 * A new feature has been added to abort early in the test framework.
196 * Input validation of "git pack-objects --stdin-packs" has been
199 * Bugfix for common ancestor negotiation recently introduced in "git
202 * "git pull" had various corner cases that were not well thought out
203 around its --rebase backend, e.g. "git pull --ff-only" did not stop
204 but went ahead and rebased when the history on other side is not a
205 descendant of our history. The series tries to fix them up.
207 * "git apply" miscounted the bytes and failed to read to the end of
210 * "git range-diff" code clean-up.
212 * "git commit --fixup" now works with "--edit" again, after it was
215 * Use upload-artifacts v1 (instead of v2) for 32-bit linux, as the
216 new version has a blocker bug for that architecture.
218 * Checking out all the paths from HEAD during the last conflicted
219 step in "git rebase" and continuing would cause the step to be
220 skipped (which is expected), but leaves MERGE_MSG file behind in
221 $GIT_DIR and confuses the next "git commit", which has been
224 * Various bugs in "git rebase -r" have been fixed.
226 * mmap() imitation used to call xmalloc() that dies upon malloc()
227 failure, which has been corrected to just return an error to the
228 caller to be handled.
230 * "git diff --relative" segfaulted and/or produced incorrect result
231 when there are unmerged paths.
233 * The delayed checkout code path in "git checkout" etc. were chatty
234 even when --quiet and/or --no-progress options were given.
236 * "git branch -D <branch>" used to refuse to remove a broken branch
237 ref that points at a missing commit, which has been corrected.
239 * Build update for Apple clang.
241 * The parser for the "--nl" option of "git column" has been
244 * "git upload-pack" which runs on the other side of "git fetch"
245 forgot to take the ref namespaces into account when handling
248 * The sparse-index support can corrupt the index structure by storing
249 a stale and/or uninitialized data, which has been corrected.
251 * Buggy tests could damage repositories outside the throw-away test
252 area we created. We now by default export GIT_CEILING_DIRECTORIES
253 to limit the damage from such a stray test.
255 * Even when running "git send-email" without its own threaded
256 discussion support, a threading related header in one message is
257 carried over to the subsequent message to result in an unwanted
258 threading, which has been corrected.
260 * The output from "git fast-export", when its anonymization feature
261 is in use, showed an annotated tag incorrectly.
263 * Doc update plus improved error reporting.
265 * Recent "diff -m" changes broke "gitk", which has been corrected.
269 * The "git apply -3" code path learned not to bother the lower level
270 merge machinery when the three-way merge can be trivially resolved
271 without the content level merge. This fixes a regression caused by
272 recent "-3way first and fall back to direct application" change.
274 * The code that optionally creates the *.rev reverse index file has
275 been optimized to avoid needless computation when it is not writing
278 * "git range-diff -I... <range> <range>" segfaulted, which has been
281 * The order in which various files that make up a single (conceptual)
282 packfile has been reevaluated and straightened up. This matters in
283 correctness, as an incomplete set of files must not be shown to a
286 * The "mode" word is useless in a call to open(2) that does not
287 create a new file. Such a call in the files backend of the ref
288 subsystem has been cleaned up.
290 * "git update-ref --stdin" failed to flush its output as needed,
291 which potentially led the conversation to a deadlock.
293 * When "git am --abort" fails to abort correctly, it still exited
294 with exit status of 0, which has been corrected.
296 * Correct nr and alloc members of strvec struct to be of type size_t.
298 * "git stash", where the tentative change involves changing a
299 directory to a file (or vice versa), was confused, which has been
302 * "git clone" from a repository whose HEAD is unborn into a bare
303 repository didn't follow the branch name the other side used, which
306 * "git cvsserver" had a long-standing bug in its authentication code,
307 which has finally been corrected (it is unclear and is a separate
308 question if anybody is seriously using it, though).
310 * "git difftool --dir-diff" mishandled symbolic links.
312 * Sensitive data in the HTTP trace were supposed to be redacted, but
313 we failed to do so in HTTP/2 requests.
315 * "make clean" has been updated to remove leftover .depend/
316 directories, even when it is not told to use them to compute header
319 * Protocol v0 clients can get stuck parsing a malformed feature line.
321 * A few kinds of changes "git status" can show were not documented.
322 (merge d2a534c515 ja/doc-status-types-and-copies later to maint).
324 * The mergesort implementation used to sort linked list has been
326 (merge c90cfc225b rs/mergesort later to maint).
328 * An editor session launched during a Git operation (e.g. during 'git
329 commit') can leave the terminal in a funny state. The code path
330 has updated to save the terminal state before, and restore it
331 after, it spawns an editor.
332 (merge 3d411afabc cm/save-restore-terminal later to maint).
334 * "git cat-file --batch" with the "--batch-all-objects" option is
335 supposed to iterate over all the objects found in a repository, but
336 it used to translate these object names using the replace mechanism,
337 which defeats the point of enumerating all objects in the repository.
338 This has been corrected.
339 (merge bf972896d7 jk/cat-file-batch-all-wo-replace later to maint).
341 * Recent sparse-index work broke safety against attempts to add paths
342 with trailing slashes to the index, which has been corrected.
343 (merge c8ad9d04c6 rs/make-verify-path-really-verify-again later to maint).
345 * The "--color-lines" and "--color-by-age" options of "git blame"
346 have been missing, which are now documented.
347 (merge 8c32856133 bs/doc-blame-color-lines later to maint).
349 * The PATH used in CI job may be too wide and let incompatible dlls
350 to be grabbed, which can cause the build&test to fail. Tighten it.
351 (merge 7491ef6198 js/windows-ci-path-fix later to maint).
353 * Avoid performance measurements from getting ruined by gc and other
354 housekeeping pauses interfering in the middle.
355 (merge be79131a53 rs/disable-gc-during-perf-tests later to maint).
357 * Stop "git add --dry-run" from creating new blob and tree objects.
358 (merge e578d0311d rs/add-dry-run-without-objects later to maint).
360 * "git commit" gave duplicated error message when the object store
361 was unwritable, which has been corrected.
362 (merge 4ef91a2d79 ab/fix-commit-error-message-upon-unwritable-object-store later to maint).
364 * Recent sparse-index addition, namely any use of index_name_pos(),
365 can expand sparse index entries and breaks any code that walks
366 cache-tree or existing index entries. One such instance of such a
367 breakage has been corrected.
369 * The xxdiff difftool backend can exit with status 128, which the
370 difftool-helper that launches the backend takes as a significant
371 failure, when it is not significant at all. Work it around.
372 (merge 571f4348dd da/mergetools-special-case-xxdiff-exit-128 later to maint).
374 * Improve test framework around unwritable directories.
375 (merge 5d22e18965 ab/test-cleanly-recreate-trash-directory later to maint).
377 * "git push" client talking to an HTTP server did not diagnose the
378 lack of the final status report from the other side correctly,
379 which has been corrected.
380 (merge c5c3486f38 jk/http-push-status-fix later to maint).
382 * Update "git archive" documentation and give explicit mention on the
383 compression level for both zip and tar.gz format.
384 (merge c4b208c309 bs/archive-doc-compression-level later to maint).
386 * Drop "git sparse-index" from the list of common commands.
387 (merge 6a9a50a8af sg/sparse-index-not-that-common-a-command later to maint).
389 * "git branch -c/-m new old" was not described to copy config, which
391 (merge 8252ec300e jc/branch-copy-doc later to maint).
393 * Squelch over-eager warning message added during this cycle.
394 (merge 9e8fe7b1c7 jk/log-warn-on-bogus-encoding later to maint).
396 * Fix long-standing shell syntax error in the completion script.
397 (merge 46b0585286 re/completion-fix-test-equality later to maint).
399 * Teach "git commit-graph" command not to allow using replace objects
400 at all, as we do not use the commit-graph at runtime when we see
402 (merge 095d112f8c ab/ignore-replace-while-working-on-commit-graph later to maint).
404 * Other code cleanup, docfix, build fix, etc.
405 (merge f188160be9 ab/bundle-remove-verbose-option later to maint).
406 (merge 8c6b4332b4 rs/close-pack-leakfix later to maint).
407 (merge 51b04c05b7 bs/difftool-msg-tweak later to maint).
408 (merge dd20e4a6db ab/make-compdb-fix later to maint).
409 (merge 6ffb990dc4 os/status-docfix later to maint).
410 (merge 100c2da2d3 rs/p3400-lose-tac later to maint).
411 (merge 76f3b69896 tb/aggregate-ignore-leading-whitespaces later to maint).
412 (merge 6e4fd8bfcd tz/doc-link-to-bundle-format-fix later to maint).
413 (merge f6c013dfa1 jc/doc-commit-header-continuation-line later to maint).
414 (merge ec9a37d69b ab/pkt-line-cleanup later to maint).
415 (merge 8650c6298c ab/fix-make-lint-docs later to maint).
416 (merge 1c720357ce ab/test-lib-diff-cleanup later to maint).
417 (merge 6b615dbece ks/submodule-add-message-fix later to maint).
418 (merge 82a57cd13f ma/doc-git-version later to maint).
419 (merge 203eb8381a jc/doc-format-patch-clarify-auto-base later to maint).
420 (merge 559664c792 ab/test-lib later to maint).