Documentation / RelNotes / 2.14.0.txton commit Merge branch 'jk/drop-free-refspecs' (6e9b010)
   1Git 2.14 Release Notes
   2======================
   3
   4Backward compatibility notes.
   5
   6 * Use of an empty string as a pathspec element that is used for
   7   'everything matches' is still warned and Git asks users to use a
   8   more explicit '.' for that instead.  The hope is that existing
   9   users will not mind this change, and eventually the warning can be
  10   turned into a hard error, upgrading the deprecation into removal of
  11   this (mis)feature.  That is not scheduled to happen in the upcoming
  12   release (yet).
  13
  14 * Git now avoids blindly falling back to ".git" when the setup
  15   sequence said we are _not_ in Git repository.  A corner case that
  16   happens to work right now may be broken by a call to die("BUG").
  17   We've tried hard to locate such cases and fixed them, but there
  18   might still be cases that need to be addressed--bug reports are
  19   greatly appreciated.
  20
  21
  22Updates since v2.13
  23-------------------
  24
  25UI, Workflows & Features
  26
  27 * The colors in which "git status --short --branch" showed the names
  28   of the current branch and its remote-tracking branch are now
  29   configurable.
  30
  31 * "git clone" learned the "--no-tags" option not to fetch all tags
  32   initially, and also set up the tagopt not to follow any tags in
  33   subsequent fetches.
  34
  35 * "git archive --format=zip" learned to use zip64 extension when
  36   necessary to go beyond the 4GB limit.
  37   (merge 867e40ff3a rs/large-zip later to maint).
  38
  39 * "git reset" learned "--recurse-submodules" option.
  40
  41 * "git diff --submodule=diff" now recurses into nested submodules.
  42   (merge 5a5221427c jk/diff-submodule-diff-inline later to maint).
  43
  44 * "git repack" learned to accept the --threads=<n> option and pass it
  45   to pack-objects.
  46
  47 * "git send-email" learned to run sendemail-validate hook to inspect
  48   and reject a message before sending it out.
  49   (merge 6489660b4b jt/send-email-validate-hook later to maint).
  50
  51 * There is no good reason why "git fetch $there $sha1" should fail
  52   when the $sha1 names an object at the tip of an advertised ref,
  53   even when the other side hasn't enabled allowTipSHA1InWant.
  54
  55 * The recently introduced "[includeIf "gitdir:$dir"] path=..."
  56   mechansim has further been taught to take symlinks into account.
  57   The directory "$dir" specified in "gitdir:$dir" may be a symlink to
  58   a real location, not something that $(getcwd) may return.  In such
  59   a case, a realpath of "$dir" is compared with the real path of the
  60   current repository to determine if the contents from the named path
  61   should be included.
  62
  63
  64Performance, Internal Implementation, Development Support etc.
  65
  66 * The default packed-git limit value has been raised on larger
  67   platforms to save "git fetch" from a (recoverable) failure while
  68   "gc" is running in parallel.
  69
  70 * Code to update the cache-tree has been tightened so that we won't
  71   accidentally write out any 0{40} entry in the tree object.
  72   (merge a96d3cc3f6 jk/no-null-sha1-in-cache-tree later to maint).
  73
  74 * Attempt to allow us notice "fishy" situation where we fail to
  75   remove the temporary directory used during the test.
  76
  77 * Travis CI gained a task to format the documentation with both
  78   AsciiDoc and AsciiDoctor.
  79   (merge 505ad91304 ls/travis-doc-asciidoctor later to maint).
  80
  81 * Some platforms have ulong that is smaller than time_t, and our
  82   historical use of ulong for timestamp would mean they cannot
  83   represent some timestamp that the platform allows.  Invent a
  84   separate and dedicated timestamp_t (so that we can distingiuish
  85   timestamps and a vanilla ulongs, which along is already a good
  86   move), and then declare uintmax_t is the type to be used as the
  87   timestamp_t.
  88
  89 * We can trigger Windows auto-build tester (credits: Dscho &
  90   Microsoft) from our existing Travis CI tester now.
  91
  92 * Conversion from uchar[20] to struct object_id continues.
  93
  94 * Simplify parse_pathspec() codepath and stop it from looking at the
  95   default in-core index.
  96   (merge 08de9151a8 bw/pathspec-sans-the-index later to maint).
  97
  98 * Add perf-test for wildmatch.
  99   (merge 62ca75a6b9 ab/perf-wildmatch later to maint).
 100
 101 * Code from "conversion using external process" codepath has been
 102   extracted to a separate sub-process.[ch] module.
 103   (merge 4f2a2e9f0e bp/sub-process-convert-filter later to maint).
 104
 105 * When "git checkout", "git merge", etc. manipulates the in-core
 106   index, various pieces of information in the index extensions are
 107   discarded from the original state, as it is usually not the case
 108   that they are kept up-to-date and in-sync with the operation on the
 109   main index.  The untracked cache extension is copied across these
 110   operations now, which would speed up "git status" (as long as the
 111   cache is properly invalidated).
 112
 113 * The internal implementation of "git grep" has seen some clean-up.
 114   (merge 8df4c2953f ab/grep-preparatory-cleanup later to maint).
 115
 116 * Update the C style recommendation for notes for translators, as
 117   recent versions of gettext tools can work with our style of
 118   multi-line comments.
 119   (merge 66f5f6dca9 ab/c-translators-comment-style later to maint).
 120
 121
 122Also contains various documentation updates and code clean-ups.
 123
 124
 125Fixes since v2.13
 126-----------------
 127
 128Unless otherwise noted, all the fixes since v2.13 in the maintenance
 129track are contained in this release (see the maintenance releases'
 130notes for details).
 131
 132 * "git gc" did not interact well with "git worktree"-managed
 133   per-worktree refs.
 134
 135 * "git cherry-pick" and other uses of the sequencer machinery
 136   mishandled a trailer block whose last line is an incomplete line.
 137   This has been fixed so that an additional sign-off etc. are added
 138   after completing the existing incomplete line.
 139   (merge 44dc738a39 jt/use-trailer-api-in-commands later to maint).
 140
 141 * The codepath in "git am" that is used when running "git rebase"
 142   leaked memory held for the log message of the commits being rebased.
 143   (merge 721f5f1e35 jk/am-leakfix later to maint).
 144
 145 * "git clone --config var=val" is a way to populate the
 146   per-repository configuration file of the new repository, but it did
 147   not work well when val is an empty string.  This has been fixed.
 148   (merge db4eca1fea jn/clone-add-empty-config-from-command-line later to maint).
 149
 150 * Setting "log.decorate=false" in the configuration file did not take
 151   effect in v2.13, which has been corrected.
 152   (merge c74271aae7 ah/log-decorate-default-to-auto later to maint).
 153
 154 * A few codepaths in "checkout" and "am" working on an unborn branch
 155   tried to access an uninitialized piece of memory.
 156   (merge 57e0ef0e0e rs/checkout-am-fix-unborn later to maint).
 157
 158 * The Web interface to gmane news archive is long gone, even though
 159   the articles are still accessible via NTTP.  Replace the links with
 160   ones to public-inbox.org.  Because their message identification is
 161   based on the actual message-id, it is likely that it will be easier
 162   to migrate away from it if/when necessary.
 163   (merge 5840eb9d14 ab/doc-replace-gmane-links later to maint).
 164
 165 * The receive-pack program now makes sure that the push certificate
 166   records the same set of push options used for pushing.
 167   (merge cbaf82cc6b jt/push-options-doc later to maint).
 168
 169 * Tests have been updated to pass under GETTEXT_POISON (a mechanism
 170   to ensure that output strings that should not be translated are
 171   not translated by mistake), and TravisCI is told to run them.
 172   (merge b8e188f6f5 ab/fix-poison-tests later to maint).
 173
 174 * "git checkout --recurse-submodules" did not quite work with a
 175   submodule that itself has submodules.
 176   (merge 218c883783 sb/checkout-recurse-submodules later to maint).
 177
 178 * Plug some leaks and updates internal API used to implement the
 179   split index feature to make it easier to avoid such a leak in the
 180   future.
 181   (merge de950c5773 nd/split-index-unshare later to maint).
 182
 183 * "pack-objects" can stream a slice of an existing packfile out when
 184   the pack bitmap can tell that the reachable objects are all needed
 185   in the output, without inspecting individual objects.  This
 186   strategy however would not work well when "--local" and other
 187   options are in use, and need to be disabled.
 188   (merge da5a1f8100 jk/disable-pack-reuse-when-broken later to maint).
 189
 190 * Fix memory leaks pointed out by Coverity (and people).
 191   (merge 443a12f37b js/plug-leaks later to maint).
 192
 193 * "git read-tree -m" (no tree-ish) gave a nonsense suggestion "use
 194   --empty if you want to clear the index".  With "-m", such a request
 195   will still fail anyway, as you'd need to name at least one tree-ish
 196   to be merged.
 197   (merge b9b10d3681 jc/read-tree-empty-with-m later to maint).
 198
 199 * Make sure our tests would pass when the sources are checked out
 200   with "platform native" line ending convention by default on
 201   Windows.  Some "text" files out tests use and the test scripts
 202   themselves that are meant to be run with /bin/sh, ought to be
 203   checked out with eol=LF even on Windows.
 204   (merge 2779f66505 js/eol-on-ourselves later to maint).
 205
 206 * Introduce the BUG() macro to improve die("BUG: ...").
 207   (merge 3d7dd2d3b6 jk/bug-to-abort later to maint).
 208
 209 * Clarify documentation for include.path and includeIf.<condition>.path
 210   configuration variables.
 211   (merge ce933ebd5a jk/doc-config-include later to maint).
 212
 213 * Git sometimes gives an advice in a rhetorical question that does
 214   not require an answer, which can confuse new users and non native
 215   speakers.  Attempt to rephrase them.
 216   (merge 6963893943 ja/do-not-ask-needless-questions later to maint).
 217
 218 * A few http:// links that are redirected to https:// in the
 219   documentation have been updated to https:// links.
 220   (merge 5e68729fd9 jk/update-links-in-docs later to maint).
 221
 222 * "git for-each-ref --format=..." with %(HEAD) in the format used to
 223   resolve the HEAD symref as many times as it had processed refs,
 224   which was wasteful, and "git branch" shared the same problem.
 225   (merge 613a0e52ea kn/ref-filter-branch-list later to maint).
 226
 227 * Regression fix to topic recently merged to 'master'.
 228   (merge d096d7f1ef pw/rebase-i-regression-fix later to maint).
 229
 230 * The shell completion script (in contrib/) learned "git stash" has
 231   a new "push" subcommand.
 232   (merge 3851e4483f tg/stash-push-fixup later to maint).
 233
 234 * "git interpret-trailers", when used as GIT_EDITOR for "git commit
 235   -v", looked for and appended to a trailer block at the very end,
 236   i.e. at the end of the "diff" output.  The command has been
 237   corrected to pay attention to the cut-mark line "commit -v" adds to
 238   the buffer---the real trailer block should appear just before it.
 239   (merge d76650b8d1 bm/interpret-trailers-cut-line-is-eom later to maint).
 240
 241 * A test allowed both "git push" and "git receive-pack" on the other
 242   end write their traces into the same file.  This is OK on platforms
 243   that allows atomically appending to a file opened with O_APPEND,
 244   but on other platforms led to a mangled output, causing
 245   intermittent test failures.  This has been fixed by disabling
 246   traces from "receive-pack" in the test.
 247   (merge 71406ed4d6 jk/alternate-ref-optim later to maint).
 248
 249 * Tag objects, which are not reachable from any ref, that point at
 250   missing objects were mishandled by "git gc" and friends (they
 251   should silently be ignored instead)
 252   (merge a3ba6bf10a jk/ignore-broken-tags-when-ignoring-missing-links later to maint).
 253
 254 * "git describe --contains" penalized light-weight tags so much that
 255   they were almost never considered.  Instead, give them about the
 256   same chance to be considered as an annotated tag that is the same
 257   age as the underlying commit would.
 258   (merge ef1e74065c jc/name-rev-lw-tag later to maint).
 259
 260 * The "run-command" API implementation has been made more robust
 261   against dead-locking in a threaded environment.
 262   (merge e3f43ce765 bw/forking-and-threading later to maint).
 263
 264 * A recent update to t5545-push-options.sh started skipping all the
 265   tests in the script when a web server testing is disabled or
 266   unavailable, not just the ones that require a web server.  Non HTTP
 267   tests have been salvaged to always run in this script.
 268   (merge 2e397e4ddf jc/skip-test-in-the-middle later to maint).
 269
 270 * "git send-email" now uses Net::SMTP::SSL, which is obsolete, only
 271   when needed.  Recent versions of Net::SMTP can do TLS natively.
 272   (merge 0ead000c3a dk/send-email-avoid-net-smtp-ssl-when-able later to maint).
 273
 274 * "foo\bar\baz" in "git fetch foo\bar\baz", even though there is no
 275   slashes in it, cannot be a nickname for a remote on Windows, as
 276   that is likely to be a pathname on a local filesystem.
 277   (merge d9244ecf4f js/bs-is-a-dir-sep-on-windows later to maint).
 278
 279 * "git clean -d" used to clean directories that has ignored files,
 280   even though the command should not lose ignored ones without "-x".
 281   "git status --ignored"  did not list ignored and untracked files
 282   without "-uall".  These have been corrected.
 283   (merge 6b1db43109 sl/clean-d-ignored-fix later to maint).
 284
 285 * The result from "git diff" that compares two blobs, e.g. "git diff
 286   $commit1:$path $commit2:$path", used to be shown with the full
 287   object name as given on the command line, but it is more natural to
 288   use the $path in the output and use it to look up .gitattributes.
 289   (merge 30d005c020 jk/diff-blob later to maint).
 290
 291 * The "collision detecting" SHA-1 implementation shipped with 2.13
 292   was quite broken on some big-endian platforms and/or platforms that
 293   do not like unaligned fetches.  Update to the upstream code which
 294   has already fixed these issues.
 295   (merge a0103914c2 ab/sha1dc-maint later to maint).
 296
 297 * "git am -h" triggered a BUG().
 298   (merge f3a2fffe06 jk/unbreak-am-h later to maint).
 299
 300 * The interaction of "url.*.insteadOf" and custom URL scheme's
 301   whitelisting is now documented better.
 302   (merge 2c9a2ae285 jk/url-insteadof-config later to maint).
 303
 304 * Other minor doc, test and build updates and code cleanups.
 305   (merge 515360f9e9 jn/credential-doc-on-clear later to maint).
 306   (merge 0e6d899fee ab/aix-needs-compat-regex later to maint).
 307   (merge e294e8959f jc/apply-fix-mismerge later to maint).
 308   (merge 7f1b225153 bw/submodule-with-bs-path later to maint).
 309   (merge c8f7c8b704 tb/dedup-crlf-tests later to maint).
 310   (merge 449456ad47 sg/core-filemode-doc-typofix later to maint).
 311   (merge ba4dce784e km/log-showsignature-doc later to maint).
 312   (merge c5a9157393 jh/memihash-opt later to maint).
 313   (merge 80f4cd8046 ab/ref-filter-no-contains later to maint).
 314   (merge b275da816c ah/doc-interpret-trailers-ifexists later to maint).
 315   (merge fc7a5edb55 ah/doc-pretty-format-fix later to maint).
 316   (merge 7e95fcb4b5 sb/t5531-update-desc later to maint).
 317   (merge b8f354f294 sd/t3200-typofix later to maint).
 318   (merge ba746ff9c9 ah/doc-filter-branch-export-env later to maint).
 319   (merge 44e2ff09ce ab/t3070-test-dedup later to maint).
 320   (merge 9ee4aa95db rf/completion-config-commit later to maint).
 321   (merge fb87327aee ah/doc-rev-parse-short-default later to maint).