Documentation / RelNotes / 2.23.0.txton commit Merge branch 'pw/prompt-cherry-pick-revert-fix' (8a4acc5)
   1Git 2.23 Release Notes
   2======================
   3
   4Updates since v2.22
   5-------------------
   6
   7Backward compatibility note
   8
   9 * The "--base" option of "format-patch" computed the patch-ids for
  10   prerequisite patches in an unstable way, which has been updated to
  11   compute in a way that is compatible with "git patch-id --stable".
  12
  13
  14UI, Workflows & Features
  15
  16 * The "git fast-export/import" pair has been taught to handle commits
  17   with log messages in encoding other than UTF-8 better.
  18
  19 * In recent versions of Git, per-worktree refs are exposed in
  20   refs/worktrees/<wtname>/ hierarchy, which means that worktree names
  21   must be a valid refname component.  The code now sanitizes the names
  22   given to worktrees, to make sure these refs are well-formed.
  23
  24 * "git merge" learned "--quit" option that cleans up the in-progress
  25   merge while leaving the working tree and the index still in a mess.
  26
  27 * "git format-patch" learns a configuration to set the default for
  28   its --notes=<ref> option.
  29
  30 * The code to show args with potential typo that cannot be
  31   interpreted as a commit-ish has been improved.
  32
  33 * "git clone --recurse-submodules" learned to set up the submodules
  34   to ignore commit object names recorded in the superproject gitlink
  35   and instead use the commits that happen to be at the tip of the
  36   remote-tracking branches from the get-go, by passing the new
  37   "--remote-submodules" option.
  38
  39 * The pattern "git diff/grep" use to extract funcname and words
  40   boundary for Matlab has been extend to cover Octave, which is more
  41   or less equivalent.
  42
  43 * "git help git" was hard to discover (well, at least for some
  44   people).
  45
  46 * The pattern "git diff/grep" use to extract funcname and words
  47   boundary for Rust has been added.
  48
  49 * "git status" can be told a non-standard default value for the
  50   "--[no-]ahead-behind" option with a new configuration variable
  51   status.aheadBehind.
  52
  53 * "git fetch" and "git pull" reports when a fetch results in
  54   non-fast-forward updates to let the user notice unusual situation.
  55   The commands learned "--no-shown-forced-updates" option to disable
  56   this safety feature.
  57
  58 * Two new commands "git switch" and "git restore" are introduced to
  59   split "checking out a branch to work on advancing its history" and
  60   "checking out paths out of the index and/or a tree-ish to work on
  61   advancing the current history" out of the single "git checkout"
  62   command.
  63
  64 * "git branch --list" learned to always output the detached HEAD as
  65   the first item (when the HEAD is detached, of course), regardless
  66   of the locale.
  67
  68 * The conditional inclusion mechanism learned to base the choice on
  69   the branch the HEAD currently is on.
  70
  71 * "git rev-list --objects" learned with "--no-object-names" option to
  72   squelch the path to the object that is used as a grouping hint for
  73   pack-objects.
  74
  75 * A new tag.gpgSign configuration variable turns "git tag -a" into
  76   "git tag -s".
  77
  78
  79Performance, Internal Implementation, Development Support etc.
  80
  81 * Update supporting parts of "git rebase" to remove code that should
  82   no longer be used.
  83
  84 * Developer support to emulate unsatisfied prerequisites in tests to
  85   ensure that the remainer of the tests still succeeds when tests
  86   with prerequisites are skipped.
  87
  88 * "git update-server-info" learned not to rewrite the file with the
  89   same contents.
  90
  91 * The way of specifying the path to find dynamic libraries at runtime
  92   has been simplified.  The old default to pass -R/path/to/dir has been
  93   replaced with the new default to pass -Wl,-rpath,/path/to/dir,
  94   which is the more recent GCC uses.  Those who need to build with an
  95   old GCC can still use "CC_LD_DYNPATH=-R"
  96
  97 * Prepare use of reachability index in topological walker that works
  98   on a range (A..B).
  99
 100 * A new tutorial targetting specifically aspiring git-core
 101   developers has been added.
 102
 103 * Auto-detect how to tell HP-UX aCC where to use dynamically linked
 104   libraries from at runtime.
 105
 106 * "git mergetool" and its tests now spawn fewer subprocesses.
 107
 108 * Dev support update to help tracing out tests.
 109
 110 * Support to build with MSVC has been updated.
 111
 112 * "git fetch" that grabs from a group of remotes learned to run the
 113   auto-gc only once at the very end.
 114
 115 * A handful of Windows build patches have been upstreamed.
 116
 117
 118Fixes since v2.22
 119-----------------
 120
 121 * A relative pathname given to "git init --template=<path> <repo>"
 122   ought to be relative to the directory "git init" gets invoked in,
 123   but it instead was made relative to the repository, which has been
 124   corrected.
 125   (merge e1df7fe43f nd/init-relative-template-fix later to maint).
 126
 127 * "git worktree add" used to fail when another worktree connected to
 128   the same repository was corrupt, which has been corrected.
 129   (merge 105df73e71 nd/corrupt-worktrees later to maint).
 130
 131 * The ownership rule for the file descriptor to fast-import remote
 132   backend was mixed up, leading to unrelated file descriptor getting
 133   closed, which has been fixed.
 134   (merge 3203566a71 mh/import-transport-fd-fix later to maint).
 135
 136 * A "merge -c" instruction during "git rebase --rebase-merges" should
 137   give the user a chance to edit the log message, even when there is
 138   otherwise no need to create a new merge and replace the existing
 139   one (i.e. fast-forward instead), but did not.  Which has been
 140   corrected.
 141
 142 * Code cleanup and futureproof.
 143   (merge 31f5256c82 ds/object-info-for-prefetch-fix later to maint).
 144
 145 * More parameter validation.
 146   (merge de99eb0c24 es/grep-require-name-when-needed later to maint).
 147
 148 * "git update-server-info" used to leave stale packfiles in its
 149   output, which has been corrected.
 150   (merge e941c48d49 ew/server-info-remove-crufts later to maint).
 151
 152 * The server side support for "git fetch" used to show incorrect
 153   value for the HEAD symbolic ref when the namespace feature is in
 154   use, which has been corrected.
 155   (merge 533e088250 jk/HEAD-symref-in-xfer-namespaces later to maint).
 156
 157 * "git am -i --resolved" segfaulted after trying to see a commit as
 158   if it were a tree, which has been corrected.
 159   (merge 7663e438c5 jk/am-i-resolved-fix later to maint).
 160
 161 * "git bundle verify" needs to see if prerequisite objects exist in
 162   the receiving repository, but the command did not check if we are
 163   in a repository upfront, which has been corrected.
 164   (merge 3bbbe467f2 js/bundle-verify-require-object-store later to maint).
 165
 166 * "git merge --squash" is designed to update the working tree and the
 167   index without creating the commit, and this cannot be countermanded
 168   by adding the "--commit" option; the command now refuses to work
 169   when both options are given.
 170   (merge 1d14d0c994 vv/merge-squash-with-explicit-commit later to maint).
 171
 172 * The data collected by fsmonitor was not properly written back to
 173   the on-disk index file, breaking t7519 tests occasionally, which
 174   has been corrected.
 175   (merge b5a8169752 js/fsmonitor-unflake later to maint).
 176
 177 * Update to Unicode 12.1 width table.
 178   (merge 5817f9caa3 bb/unicode-12.1-reiwa later to maint).
 179
 180 * The command line to invoke a "git cat-file" command from inside
 181   "git p4" was not properly quoted to protect a caret and running a
 182   broken command on Windows, which has been corrected.
 183   (merge c3f2358de3 mm/p4-unshelve-windows-fix later to maint).
 184
 185 * "git request-pull" learned to warn when the ref we ask them to pull
 186   from in the local repository and in the published repository are
 187   different.
 188   (merge 0454220d66 pb/request-pull-verify-remote-ref later to maint).
 189
 190 * When creating a partial clone, the object filtering criteria is
 191   recorded for the origin of the clone, but this incorrectly used a
 192   hardcoded name "origin" to name that remote; it has been corrected
 193   to honor the "--origin <name>" option.
 194   (merge 1c4a9f9114 xl/record-partial-clone-origin later to maint).
 195
 196 * "git fetch" into a lazy clone forgot to fetch base objects that are
 197   necessary to complete delta in a thin packfile, which has been
 198   corrected.
 199   (merge 810e19322d jt/partial-clone-missing-ref-delta-base later to maint).
 200
 201 * The filter_data used in the list-objects-filter (which manages a
 202   lazily sparse clone repository) did not use the dynamic array API
 203   correctly---'nr' is supposed to point at one past the last element
 204   of the array in use.  This has been corrected.
 205   (merge 7140600e2e md/list-objects-filter-memfix later to maint).
 206
 207 * The description about slashes in gitignore patterns (used to
 208   indicate things like "anchored to this level only" and "only
 209   matches directories") has been revamped.
 210   (merge 1a58bad014 an/ignore-doc-update later to maint).
 211
 212 * The URL decoding code has been updated to avoid going past the end
 213   of the string while parsing %-<hex>-<hex> sequence.
 214   (merge d37dc239a4 md/url-parse-harden later to maint).
 215
 216 * The list of for-each like macros used by clang-format has been
 217   updated.
 218   (merge fc7e03aace mo/clang-format-for-each-update later to maint).
 219
 220 * "git branch --list" learned to show branches that are checked out
 221   in other worktrees connected to the same repository prefixed with
 222   '+', similar to the way the currently checked out branch is shown
 223   with '*' in front.
 224   (merge 6e9381469e nb/branch-show-other-worktrees-head later to maint).
 225
 226 * Code restructuring during 2.20 period broke fetching tags via
 227   "import" based transports.
 228   (merge f80d922355 fc/fetch-with-import-fix later to maint).
 229
 230 * The commit-graph file is now part of the "files that the runtime
 231   may keep open file descriptors on, all of which would need to be
 232   closed when done with the object store", and the file descriptor to
 233   an existing commit-graph file now is closed before "gc" finalizes a
 234   new instance to replace it.
 235   (merge 2d511cfc0b ds/close-object-store later to maint).
 236
 237 * "git checkout -p" needs to selectively apply a patch in reverse,
 238   which did not work well.
 239   (merge 2bd69b9024 pw/add-p-recount later to maint).
 240
 241 * Code clean-up to avoid signed integer wraparounds during binary search.
 242   (merge 568a05c5ec rs/avoid-overflow-in-midpoint-computation later to maint).
 243
 244 * "git interpret-trailers" always treated '#' as the comment
 245   character, regardless of core.commentChar setting, which has been
 246   corrected.
 247   (merge 29c83fc23f jk/trailers-use-config later to maint).
 248
 249 * "git stash show 23" used to work, but no more after getting
 250   rewritten in C; this regression has been corrected.
 251   (merge 63b50c8ffe tg/stash-ref-by-index-fix later to maint).
 252
 253 * "git rebase --abort" used to leave refs/rewritten/ when concluding
 254   "git rebase -r", which has been corrected.
 255   (merge d559f502c5 pw/rebase-abort-clean-rewritten later to maint).
 256
 257 * An incorrect list of options was cached after command line
 258   completion failed (e.g. trying to complete a command that requires
 259   a repository outside one), which has been corrected.
 260   (merge 69702523af nd/completion-no-cache-failure later to maint).
 261
 262 * The code to parse scaled numbers out of configuration files has
 263   been made more robust and also easier to follow.
 264   (merge 39c575c969 rs/config-unit-parsing later to maint).
 265
 266 * The codepath to compute delta islands used to spew progress output
 267   without giving the callers any way to squelch it, which has been
 268   fixed.
 269   (merge bdbdf42f8a jk/delta-islands-progress-fix later to maint).
 270
 271 * Protocol capabilities that go over wire should never be translated,
 272   but it was incorrectly marked for translation, which has been
 273   corrected.  The output of protocol capabilities for debugging has
 274   been tweaked a bit.
 275
 276 * Use "Erase in Line" CSI sequence that is already used in the editor
 277   support to clear cruft in the progress output.
 278   (merge 5b12e3123b sg/rebase-progress later to maint).
 279
 280 * "git submodule foreach" did not protect command line options passed
 281   to the command to be run in each submodule correctly, when the
 282   "--recursive" option was in use.
 283   (merge 30db18b148 ms/submodule-foreach-fix later to maint).
 284
 285 * The configuration variable rebase.rescheduleFailedExec should be
 286   effective only while running an interactive rebase and should not
 287   affect anything when running an non-interactive one, which was not
 288   the case.  This has been corrected.
 289   (merge 906b63942a js/rebase-reschedule-applies-only-to-interactive later to maint).
 290
 291 * The "git clone" documentation refers to command line options in its
 292   description in the short form; they have been replaced with long
 293   forms to make them more recognisable.
 294   (merge bfc8c84ed5 qn/clone-doc-use-long-form later to maint).
 295
 296 * Other code cleanup, docfix, build fix, etc.
 297   (merge f547101b26 es/git-debugger-doc later to maint).
 298   (merge 7877ac3d7b js/bisect-helper-check-get-oid-return-value later to maint).
 299   (merge 0108f47eb3 sw/git-p4-unshelve-branched-files later to maint).
 300   (merge 9df8f734fd cm/send-email-document-req-modules later to maint).
 301   (merge afc3bf6eb1 ab/hash-object-doc later to maint).
 302   (merge 1fde99cfc7 po/doc-branch later to maint).
 303   (merge 459842e1c2 dl/config-alias-doc later to maint).
 304   (merge 5d137fc2c7 cb/fsmonitor-intfix later to maint).
 305   (merge 921d49be86 rs/copy-array later to maint).
 306   (merge cc8d872e69 js/t3404-typofix later to maint).
 307   (merge 729a9b558b cb/mkstemps-uint-type-fix later to maint).
 308   (merge 9dae4fe79f js/gcc-8-and-9 later to maint).
 309   (merge ed33bd8f30 js/t0001-case-insensitive later to maint).
 310   (merge dfa880e336 jw/gitweb-sample-update later to maint).
 311   (merge e532a90a9f sg/t5551-fetch-smart-error-is-translated later to maint).
 312   (merge 8d45ad8c29 jt/t5551-test-chunked later to maint).
 313   (merge 1a64e07d23 sg/git-C-empty-doc later to maint).
 314   (merge 37a2e35395 sg/ci-brew-gcc-workaround later to maint).