1 Git v2.42 Release Notes
2 =======================
4 UI, Workflows & Features
6 * "git pack-refs" learns "--include" and "--exclude" to tweak the ref
7 hierarchy to be packed using pattern matching.
9 * 'git worktree add' learned how to create a worktree based on an
10 orphaned branch with `--orphan`.
12 * "git pack-objects" learned to invoke a new hook program that
13 enumerates extra objects to be used as anchoring points to keep
14 otherwise unreachable objects in cruft packs.
17 Performance, Internal Implementation, Development Support etc.
19 * "git diff-tree" has been taught to take advantage of the
22 * Clang's sanitizer implementation seems to work better than GCC's.
23 (merge d88d727143 jk/ci-use-clang-for-sanitizer-jobs later to maint).
25 * The object traversal using reachability bitmap done by
26 "pack-object" has been tweaked to take advantage of the fact that
27 using "boundary" commits as representative of all the uninteresting
28 ones can save quite a lot of object enumeration.
30 * discover_git_directory() no longer touches the_repository.
32 * "git worktree" learned to work better with sparse index feature.
38 * "git tag" learned to leave the "$GIT_DIR/TAG_EDITMSG" file when the
39 command failed, so that the user can salvage what they typed.
40 (merge 08c12ec1d0 kh/keep-tag-editmsg-upon-failure later to maint).
42 * The "-s" (silent, squelch) option of the "diff" family of commands
43 did not interact with other options that specify the output format
44 well. This has been cleaned up so that it will clear all the
45 formatting options given before.
46 (merge 9d484b92ed jc/diff-s-with-other-options later to maint).
48 * Update documentation regarding Coccinelle patches.
49 (merge 3bd0097cfc gc/doc-cocci-updates later to maint).
51 * Some atoms that can be used in "--format=<format>" for "git ls-tree"
52 were not supported by "git ls-files", even though they were relevant
53 in the context of the latter.
54 (merge 4d28c4f75f zh/ls-files-format-atoms later to maint).
56 * Document more pseudo-refs and teach the command line completion
57 machinery to complete AUTO_MERGE.
58 (merge 982ff3a649 pb/complete-and-document-auto-merge-and-friends later to maint).
60 * "git submodule" code trusted the data coming from the config (and
61 the in-tree .gitmodules file) too much without validating, leading
62 to NULL dereference if the user mucks with a repository (e.g.
63 submodule.<name>.url is removed). This has been corrected.
64 (merge fbc806acd1 tb/submodule-null-deref-fix later to maint).
66 * The value of config.worktree is per-repository, but has been kept
67 in a singleton global variable per process. This has been OK as
68 most Git operations interacted with a single repository at a time,
69 but not right for operations like recursive "grep" that want to
70 access multiple repositories from a single process without forking.
72 The global variable has been eliminated and made into a member in
73 the per-repository data structure.
74 (merge 3867f6d650 vd/worktree-config-is-per-repository later to maint).
76 * "git [-c log.follow=true] log [--follow] ':(glob)f**'" used to barf.
77 (merge 8260bc5902 jk/log-follow-with-non-literal-pathspec later to maint).
79 * Introduce a mechanism to disable replace refs globally and per
81 (merge 9c7d1b057f ds/disable-replace-refs later to maint).
83 * "git cat-file --batch" and friends learned "-Z" that uses NUL
84 delimiter for both input and output.
85 (merge f79e18849b ps/cat-file-null-output later to maint).
87 * The reimplemented "git add -i" did not honor color.ui configuration.
88 (merge 6f74648cea ds/add-i-color-configuration-fix later to maint).
90 * Compilation fix for platforms without D_TYPE in struct dirent.
91 (merge 03bf92b9bf as/dtype-compilation-fix later to maint).
93 * Suggest to refrain from using hex literals that are non-portable
94 when writing printf(1) format strings.
95 (merge f0b68f0546 jt/doc-use-octal-with-printf later to maint).
97 * Simplify error message when run-command fails to start a command.
98 (merge 6d224ac286 rs/run-command-exec-error-on-noent later to maint).
100 * Gracefully deal with a stale MIDX file that lists a packfile that
102 (merge 06f3867865 tb/open-midx-bitmap-fallback later to maint).
104 * Even when diff.ignoreSubmodules tells us to ignore submodule
105 changes, "git commit" with an index that already records changes to
106 submodules should include the submodule changes in the resulting
107 commit, but it did not.
108 (merge 5768478edc js/defeat-ignore-submodules-config-with-explicit-addition later to maint).
110 * When "git commit --trailer=..." invokes the interpret-trailers
111 machinery, it knows what it feeds to interpret-trailers is a full
112 log message without any patch, but failed to express that by
113 passing the "--no-divider" option, which has been corrected.
114 (merge be3d654343 jk/commit-use-no-divider-with-interpret-trailers later to maint).
116 * Avoid breakage of "git pack-objects --cruft" due to inconsistency
117 between the way the code enumerates packfiles in the repository.
118 (merge 73320e49ad tb/collect-pack-filenames-fix later to maint).
120 * Other code cleanup, docfix, build fix, etc.
121 (merge 51f9d2e563 sa/doc-ls-remote later to maint).
122 (merge c6d26a9dda jk/format-patch-message-id-unleak later to maint).
123 (merge f7e063f326 ps/fetch-cleanups later to maint).
124 (merge e4cf013468 tl/quote-problematic-arg-for-clarity later to maint).
125 (merge 20025fdfc7 tz/test-ssh-verifytime-fix later to maint).
126 (merge e48a21df65 tz/test-fix-pthreads-prereq later to maint).
127 (merge 68b51172e3 mh/commit-reach-get-reachable-plug-leak later to maint).
128 (merge aeee1408ce kh/use-default-notes-doc later to maint).
129 (merge 3b8724bce6 jc/test-modernization later to maint).
130 (merge 447a3b7331 jc/test-modernization-2 later to maint).
131 (merge d57fa7fc73 la/doc-interpret-trailers later to maint).
132 (merge 548afb0d9a la/docs-typofixes later to maint).
133 (merge 3744ffcbcd rs/doc-ls-tree-hex-literal later to maint).
134 (merge 6c26da8404 mh/credential-erase-improvements later to maint).
135 (merge 78e56cff69 tz/lib-gpg-prereq-fix later to maint).
136 (merge 80d32e84b5 rj/leakfixes later to maint).