Documentation / RelNotes / 2.13.0.txton commit submodule sync: skip work for inactive submodules (e7849a9)
   1Git 2.13 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 * The historical argument order "git merge <msg> HEAD <commit>..."
  15   has been deprecated for quite some time, and will be removed in a
  16   future release.
  17
  18
  19Updates since v2.12
  20-------------------
  21
  22UI, Workflows & Features
  23
  24 * "git describe" and "git name-rev" have been taught to take more
  25   than one refname patterns to restrict the set of refs to base their
  26   naming output on, and also learned to take negative patterns to
  27   name refs not to be used for naming via their "--exclude" option.
  28
  29 * Deletion of a branch "foo/bar" could remove .git/refs/heads/foo
  30   once there no longer is any other branch whose name begins with
  31   "foo/", but we didn't do so so far.  Now we do.
  32
  33 * When "git merge" detects a path that is renamed in one history
  34   while the other history deleted (or modified) it, it now reports
  35   both paths to help the user understand what is going on in the two
  36   histories being merged.
  37
  38 * The <url> part in "http.<url>.<variable>" configuration variable
  39   can now be spelled with '*' that serves as wildcard.
  40   E.g. "http.https://*.example.com.proxy" can be used to specify the
  41   proxy used for https://a.example.com, https://b.example.com, etc.,
  42   i.e. any host in the example.com domain.
  43
  44 * "git tag" did not leave useful message when adding a new entry to
  45   reflog; this was left unnoticed for a long time because refs/tags/*
  46   doesn't keep reflog by default.
  47
  48 * The "negative" pathspec feature was somewhat more cumbersome to use
  49   than necessary in that its short-hand used "!" which needed to be
  50   escaped from shells, and it required "exclude from what?" specified.
  51
  52 * The command line options for ssh invocation needs to be tweaked for
  53   some implementations of SSH (e.g. PuTTY plink wants "-P <port>"
  54   while OpenSSH wants "-p <port>" to specify port to connect to), and
  55   the variant was guessed when GIT_SSH environment variable is used
  56   to specify it.  The logic to guess now applies to the command
  57   specified by the newer GIT_SSH_COMMAND and also core.sshcommand
  58   configuration variable, and comes with an escape hatch for users to
  59   deal with misdetected cases.
  60
  61 * The "--git-path", "--git-common-dir", and "--shared-index-path"
  62   options of "git rev-parse" did not produce usable output.  They are
  63   now updated to show the path to the correct file, relative to where
  64   the caller is.
  65
  66 * "git diff -W" has been taught to handle the case where a new
  67   function is added at the end of the file better.
  68
  69 * "git update-ref -d" and other operations to delete references did
  70   not leave any entry in HEAD's reflog when the reference being
  71   deleted was the current branch.  This is not a problem in practice
  72   because you do not want to delete the branch you are currently on,
  73   but caused renaming of the current branch to something else not to
  74   be logged in a useful way.
  75
  76 * "Cc:" on the trailer part does not have to conform to RFC strictly,
  77   unlike in the e-mail header.  "git send-email" has been updated to
  78   ignore anything after '>' when picking addresses, to allow non-address
  79   cruft like " # stable 4.4" after the address.
  80   (merge 9d3343961b jh/send-email-one-cc later to maint).
  81
  82 * When "git submodule init" decides that the submodule in the working
  83   tree is its upstream, it now gives a warning as it is not a very
  84   common setup.
  85   (merge d1b3b81aab sb/submodule-init-url-selection later to maint).
  86
  87 * "git stash save" takes a pathspec so that the local changes can be
  88   stashed away only partially.
  89   (merge 9e140909f6 tg/stash-push later to maint).
  90
  91 * Documentation for "git ls-files" did not refer to core.quotePath.
  92
  93
  94Performance, Internal Implementation, Development Support etc.
  95
  96 * The code to list branches in "git branch" has been consolidated
  97   with the more generic ref-filter API.
  98
  99 * Resource usage while enumerating refs from alternate object store
 100   has been optimized to help receiving end of "push" that hosts a
 101   repository with many "forks".
 102
 103 * The gitattributes machinery is being taught to work better in a
 104   multi-threaded environment.
 105
 106 * "git rebase -i" starts using the recently updated "sequencer" code.
 107
 108 * Code and design clean-up for the refs API.
 109
 110 * The preload-index code has been taught not to bother with the index
 111   entries that are paths that are not checked out by "sparse checkout".
 112
 113 * Some warning() messages from "git clean" were updated to show the
 114   errno from failed system calls.
 115
 116 * The "parse_config_key()" API function has been cleaned up.
 117   (merge ad8c7cdadd jk/parse-config-key-cleanup later to maint).
 118
 119 * A test that creates a confusing branch whose name is HEAD has been
 120   corrected not to do so.
 121   (merge f0252ca23c jk/t6300-cleanup later to maint).
 122
 123 * The code that parses header fields in the commit object has been
 124   updated for (micro)performance and code hygiene.
 125   (merge b072504ce1 rs/commit-parsing-optim later to maint).
 126
 127 * An helper function to make it easier to append the result from
 128   real_path() to a strbuf has been added.
 129   (merge 33ad9ddd0b rs/strbuf-add-real-path later to maint).
 130
 131 * Reduce authentication round-trip over HTTP when the server supports
 132   just a single authentication method.  This also improves the
 133   behaviour when Git is misconfigured to enable http.emptyAuth
 134   against a server that does not authenticate without a username
 135   (i.e. not using Kerberos etc., which makes http.emptyAuth
 136   pointless).
 137   (merge 40a18fc77c jk/http-auth later to maint).
 138
 139 * Windows port wants to use OpenSSL's implementation of SHA-1
 140   routines, so let them.
 141   (merge 2cfc70f0de jh/mingw-openssl-sha1 later to maint).
 142
 143
 144Also contains various documentation updates and code clean-ups.
 145
 146
 147Fixes since v2.12
 148-----------------
 149
 150Unless otherwise noted, all the fixes since v2.9 in the maintenance
 151track are contained in this release (see the maintenance releases'
 152notes for details).
 153
 154 * "git repack --depth=<n>" for a long time busted the specified depth
 155   when reusing delta from existing packs.  This has been corrected.
 156   (merge 42b766d765 jk/delta-chain-limit later to maint).
 157
 158 * The code to parse the command line "git grep <patterns>... <rev>
 159   [[--] <pathspec>...]" has been cleaned up, and a handful of bugs
 160   have been fixed (e.g. we used to check "--" if it is a rev).
 161   (merge 131f3c96d2 jk/grep-no-index-fix later to maint).
 162
 163 * "git ls-remote" and "git archive --remote" are designed to work
 164   without being in a directory under Git's control.  However, recent
 165   updates revealed that we randomly look into a directory called
 166   .git/ without actually doing necessary set-up when working in a
 167   repository.  Stop doing so.
 168   (merge 4b0c3c7735 jn/remote-helpers-with-git-dir later to maint).
 169
 170 * "git show-branch" expected there were only very short branch names
 171   in the repository and used a fixed-length buffer to hold them
 172   without checking for overflow.
 173   (merge d3cc5f4c44 jk/show-branch-lift-name-len-limit later to maint).
 174
 175 * A caller of tempfile API that uses stdio interface to write to
 176   files may ignore errors while writing, which is detected when
 177   tempfile is closed (with a call to ferror()).  By that time, the
 178   original errno that may have told us what went wrong is likely to
 179   be long gone and was overwritten by an irrelevant value.
 180   close_tempfile() now resets errno to EIO to make errno at least
 181   predictable.
 182   (merge 7e8c9355b7 jk/tempfile-ferror-fclose-confusion later to maint).
 183
 184 * "git remote rm X", when a branch has remote X configured as the
 185   value of its branch.*.remote, tried to remove branch.*.remote and
 186   branch.*.merge and failed if either is unset.
 187   (merge 20690b2139 rl/remote-allow-missing-branch-name-merge later to maint).
 188
 189 * A "gc.log" file left by a backgrounded "gc --auto" disables further
 190   automatic gc; it has been taught to run at least once a day (by
 191   default) by ignoring a stale "gc.log" file that is too old.
 192   (merge a831c06a2b dt/gc-ignore-old-gc-logs later to maint).
 193
 194 * The code to parse "git -c VAR=VAL cmd" and set configuration
 195   variable for the duration of cmd had two small bugs, which have
 196   been fixed.
 197   (merge 1274a155af jc/config-case-cmdline-take-2 later to maint).
 198
 199 * user.email that consists of only cruft chars should consistently
 200   error out, but didn't.
 201   (merge 94425552f3 jk/ident-empty later to maint).
 202
 203 * "git upload-pack", which is a counter-part of "git fetch", did not
 204   report a request for a ref that was not advertised as invalid.
 205   This is generally not a problem (because "git fetch" will stop
 206   before making such a request), but is the right thing to do.
 207   (merge bdb31eada7 jt/upload-pack-error-report later to maint).
 208
 209 * A leak in a codepath to read from a packed object in (rare) cases
 210   has been plugged.
 211   (merge 886ddf4777 rs/sha1-file-plug-fallback-base-leak later to maint).
 212
 213 * When a redirected http transport gets an error during the
 214   redirected request, we ignored the error we got from the server,
 215   and ended up giving a not-so-useful error message.
 216   (merge 8e27391a5f jt/http-base-url-update-upon-redirect later to maint).
 217
 218 * The patch subcommand of "git add -i" was meant to have paths
 219   selection prompt just like other subcommand, unlike "git add -p"
 220   directly jumps to hunk selection.  Recently, this was broken and
 221   "add -i" lost the paths selection dialog, but it now has been
 222   fixed.
 223   (merge c852bd54bd jk/add-i-patch-do-prompt later to maint).
 224
 225 * Git v2.12 was shipped with an embarrassing breakage where various
 226   operations that verify paths given from the user stopped dying when
 227   seeing an issue, and instead later triggering segfault.
 228   (merge ce83eadd9a js/realpath-pathdup-fix later to maint).
 229
 230 * There is no need for Python only to give a few messages to the
 231   standard error stream, but we somehow did.
 232   (merge b8686c661d ss/remote-bzr-hg-placeholder-wo-python later to maint).
 233
 234 * The code to parse "git log -L..." command line was buggy when there
 235   are many ranges specified with -L; overrun of the allocated buffer
 236   has been fixed.
 237   (merge aaae0bf787 ax/line-log-range-merge-fix later to maint).
 238
 239 * The command-line parsing of "git log -L" copied internal data
 240   structures using incorrect size on ILP32 systems.
 241   (merge 07f546cda5 vn/line-log-memcpy-size-fix later to maint).
 242
 243 * "git diff --quiet" relies on the size field in diff_filespec to be
 244   correctly populated, but diff_populate_filespec() helper function
 245   made an incorrect short-cut when asked only to populate the size
 246   field for paths that need to go through convert_to_git() (e.g. CRLF
 247   conversion).
 248   (merge 12426e114b jc/diff-populate-filespec-size-only-fix later to maint).
 249
 250 * Other minor doc, test and build updates and code cleanups.
 251   (merge 2cfa83574c mm/two-more-xstrfmt later to maint).
 252   (merge b803ae4427 ps/docs-diffcore later to maint).
 253   (merge bcd886d897 ew/markdown-url-in-readme later to maint).
 254   (merge b2d593a779 rj/remove-unused-mktemp later to maint).
 255   (merge 3255e512a8 jk/ewah-use-right-type-in-sizeof later to maint).