Documentation / RelNotes / 2.4.0.txton commit Merge branch 'jk/test-annoyances' (07da4e0)
   1Git 2.4 Release Notes
   2=====================
   3
   4Backward compatibility warning(s)
   5---------------------------------
   6
   7Output from "git log --decorate" (and "%d" format specifier used in
   8the userformat "--format=<string>" parameter "git log" family of
   9command takes) used to list "HEAD" just like other tips of branch
  10names, separated with a comma in between.  E.g.
  11
  12    $ git log --decorate -1 master
  13    commit bdb0f6788fa5e3cacc4315e9ff318a27b2676ff4 (HEAD, master)
  14    ...
  15
  16This release updates the output slightly when HEAD refers to the tip
  17of a branch whose name is also shown in the output.  The above is
  18shown as:
  19
  20    $ git log --decorate -1 master
  21    commit bdb0f6788fa5e3cacc4315e9ff318a27b2676ff4 (HEAD -> master)
  22    ...
  23
  24
  25
  26
  27Updates since v2.3
  28------------------
  29
  30Ports
  31
  32 * Our default I/O size (8 MiB) for large files was too large for some
  33   platforms with smaller SSIZE_MAX, leading to read(2)/write(2)
  34   failures.
  35
  36 * We did not check the curl library version before using
  37   CURLOPT_PROXYAUTH feature that may not exist.
  38
  39 * We now detect number of CPUs on older BSD-derived systems.
  40
  41 * Portability fixes and workarounds for shell scripts have been added
  42   to help BSD-derived systems.
  43
  44
  45UI, Workflows & Features
  46
  47 * The command usage info strings given by "git cmd -h" and in
  48   documentation have been tweaked for consistency.
  49
  50 * The "sync" subcommand of "git p4" now allows users to exclude
  51   subdirectories like its "clone" subcommand does.
  52
  53 * "git log --invert-grep --grep=WIP" will show only commits that do
  54   not have the string "WIP" in their messages.
  55
  56 * "git push" has been taught a "--atomic" option that makes push to
  57   update more than one ref an "all-or-none" affair.
  58
  59 * Extending the "push to deploy" added in 2.3, the behaviour of "git
  60   push" when updating the branch that is checked out can now be
  61   tweaked by push-to-checkout hook.
  62
  63 * Using environment variable LANGUAGE and friends on the client side,
  64   HTTP-based transports now send Accept-Language when making requests.
  65
  66 * "git send-email" used to accept a mistaken "y" (or "yes") as an
  67   answer to "What encoding do you want to use [UTF-8]? " without
  68   questioning.  Now it asks for confirmation when the answer looks
  69   too short to be a valid encoding name.
  70
  71 * When "git apply --whitespace=fix" fixed whitespace errors in the
  72   common context lines, the command reports that it did so.
  73
  74 * "git status" now allows the "-v" to be given twice to show the
  75   differences that are left in the working tree not to be committed.
  76
  77 * "git cherry-pick" used to clean-up the log message even when it is
  78   merely replaying an existing commit.  It now replays the message
  79   verbatim unless you are editing the message of resulting commits.
  80
  81 * "git archive" can now be told to set the 'text' attribute in the
  82   resulting zip archive.
  83
  84 * Output from "git log --decorate" mentions HEAD when it points at a
  85   tip of an branch differently from a detached HEAD.
  86
  87   This is a potentially backward-incompatible change.
  88
  89 * "git branch" on a detached HEAD always said "(detached from xyz)",
  90   even when "git status" would report "detached at xyz".  The HEAD is
  91   actually at xyz and haven't been moved since it was detached in
  92   such a case, but the user cannot read what the current value of
  93   HEAD is when "detached from" is used.
  94   (merge 4b06318 mg/detached-head-report later to maint).
  95
  96 * "git -C '' subcmd" refused to work in the current directory, unlike
  97   "cd ''" which silently behaves as a no-op.
  98   (merge 6a536e2 kn/git-cd-to-empty later to maint).
  99
 100 * The versionsort.prerelease configuration variable can be used to
 101   specify that v1.0-pre1 comes before v1.0.
 102
 103
 104Performance, Internal Implementation, Development Support etc.
 105
 106 * Implementation of N_() macro has been updated slightly to help us
 107   detect mistakes.
 108
 109 * Implementation of "reflog expire" has been restructured to fit the
 110   reflogs better with the recently updated ref API.
 111
 112 * The transport-helper did not give transport options such as
 113   verbosity, progress, cloning, etc. to import and export based
 114   helpers, like it did for fetch and push based helpers, robbing them
 115   the chance to honor the wish of the end-users better.
 116
 117 * The tests that wanted to see that file becomes unreadable after
 118   running "chmod a-r file", and the tests that wanted to make sure it
 119   is not run as root, we used "can we write into the / directory?" as
 120   a cheap substitute, but on some platforms that is not a good
 121   heuristics.  The tests and their prerequisites have been updated to
 122   check what they really require.
 123   (merge f400e51 jk/sanity later to maint).
 124
 125 * Various issues around "reflog expire", e.g. using --updateref when
 126   expiring a reflog for a symbolic reference, have been corrected
 127   and/or made saner.
 128
 129 * The strbuf API was explained between the API documentation and in
 130   the header file.  Move missing bits to strbuf.h so that programmers
 131   can check only one place for all necessary information.
 132
 133 * The error handling functions and conventions are now documented in
 134   the API manual.
 135
 136 * Optimize attribute look-up, mostly useful in "git grep" on a
 137   project that does not use many attributes, by avoiding it when we
 138   (should) know that the attributes are not defined in the first
 139   place.
 140
 141 * Typofix in comments.
 142   (merge ef2956a ak/git-pm-typofix later to maint).
 143
 144 * Code clean-up.
 145   (merge 0b868f0 sb/hex-object-name-is-at-most-41-bytes-long later to maint).
 146   (merge 5d30851 dp/remove-duplicated-header-inclusion later to maint).
 147
 148 * Simplify the ref transaction API around how "the ref should be
 149   pointing at this object" is specified.
 150
 151 * Code in "git daemon" to parse out and hold hostnames used in
 152   request interpolation has been simplified.
 153
 154
 155Also contains various documentation updates and code clean-ups.
 156
 157
 158Fixes since v2.3
 159----------------
 160
 161Unless otherwise noted, all the fixes since v2.3 in the maintenance
 162track are contained in this release (see the maintenance releases'
 163notes for details).
 164
 165 * "git blame HEAD -- missing" failed to correctly say "HEAD" when it
 166   tried to say "No such path 'missing' in HEAD".
 167   (merge a46442f jk/blame-commit-label later to maint).
 168
 169 * "git rerere" (invoked internally from many mergy operations) did
 170   not correctly signal errors when told to update the working tree
 171   files and failed to do so for whatever reason.
 172   (merge 89ea903 jn/rerere-fail-on-auto-update-failure later to maint).
 173
 174 * Setting diff.submodule to 'log' made "git format-patch" produce
 175   broken patches.
 176   (merge 339de50 dk/format-patch-ignore-diff-submodule later to maint).
 177
 178 * After attempting and failing a password-less authentication
 179   (e.g. kerberos), libcURL refuses to fall back to password based
 180   Basic authentication without a bit of help/encouragement.
 181   (merge 4dbe664 bc/http-fallback-to-password-after-krb-fails later to maint).
 182
 183 * The "git push" documentation made the "--repo=<there>" option
 184   easily misunderstood.
 185   (merge 57b92a7 mg/push-repo-option-doc later to maint).
 186
 187 * Code to read branch name from various files in .git/ directory
 188   would have misbehaved if the code to write them left an empty file.
 189   (merge 66ec904 jk/status-read-branch-name-fix later to maint).
 190
 191 * A misspelled conditional that is always true has been fixed.
 192   (merge 94ee8e2 jk/remote-curl-an-array-in-struct-cannot-be-null later to maint).
 193
 194 * The documentation incorrectly said that C(opy) and R(ename) are the
 195   only ones that can be followed by the score number in the output in
 196   the --raw format.
 197   (merge ac1c2d9 jc/diff-format-doc later to maint).
 198
 199 * A broken pack .idx file in the receiving repository prevented the
 200   dumb http transport from fetching a good copy of it from the other
 201   side.
 202   (merge 8b9c2dd jk/dumb-http-idx-fetch-fix later to maint).
 203
 204 * The error message from "git commit", when a non-existing author
 205   name was given as value to the "--author=" parameter, has been
 206   reworded to avoid misunderstanding.
 207   (merge 1044b1f mg/commit-author-no-match-malformed-message later to maint).
 208
 209 * "git log --help" used to show rev-list options that are irrelevant
 210   to the "log" command.
 211   (merge 3cab02d jc/doc-log-rev-list-options later to maint).
 212
 213 * "git apply --whitespace=fix" used to under-allocate the memory when
 214   the fix resulted in a longer text than the original patch.
 215   (merge 407a792 jc/apply-ws-fix-expands later to maint).
 216
 217 * The interactive "show a list and let the user choose from it"
 218   interface "add -i" used showed and prompted to the user even when
 219   the candidate list was empty, against which the only "choice" the
 220   user could have made was to choose nothing.
 221   (merge a9c4641 ak/add-i-empty-candidates later to maint).
 222
 223 * The insn sheet "git rebase -i" creates did not fully honor
 224   core.abbrev settings.
 225   (merge edb72d5 ks/rebase-i-abbrev later to maint).
 226
 227 * "git fetch" over a remote-helper that cannot respond to "list"
 228   command could not fetch from a symbolic reference e.g. HEAD.
 229   (merge 33cae54 mh/deref-symref-over-helper-transport later to maint).
 230
 231 * "git push --signed" gave an incorrectly worded error message when
 232   the other side did not support the capability.
 233   (merge 45917f0 jc/push-cert later to maint).
 234
 235 * We didn't format an integer that wouldn't fit in "int" but in
 236   "uintmax_t" correctly.
 237   (merge d306f3d jk/decimal-width-for-uintmax later to maint).
 238
 239 * Reading configuration from a blob object, when it ends with a lone
 240   CR, use to confuse the configuration parser.
 241   (merge 1d0655c jk/config-no-ungetc-eof later to maint).
 242
 243 * The pack bitmap support did not build with older versions of GCC.
 244   (merge bd4e882 jk/pack-bitmap later to maint).
 245
 246 * The documentation wasn't clear that "remote.<nick>.pushURL" and
 247   "remote.<nick>.URL" are there to name the same repository accessed
 248   via different transports, not two separate repositories.
 249   (merge 697f652 jc/remote-set-url-doc later to maint).
 250
 251 * Older GnuPG implementations may not correctly import the keyring
 252   material we prepare for the tests to use.
 253   (merge 1f985d6 ch/new-gpg-drops-rfc-1991 later to maint).
 254
 255 * The credential helper for Windows (in contrib/) used to mishandle
 256   a user name with an at-sign in it.
 257   (merge 13d261e av/wincred-with-at-in-username-fix later to maint).
 258
 259 * Longstanding configuration variable naming rules has been added to
 260   the documentation.
 261   (merge 35840a3 jc/conf-var-doc later to maint).
 262
 263 * An earlier workaround to squelch unhelpful deprecation warnings
 264   from the complier on Mac OSX unnecessarily set minimum required
 265   version of the OS, which the user might want to raise (or lower)
 266   for other reasons.
 267   (merge 88c03eb es/squelch-openssl-warnings-on-macosx later to maint).
 268
 269 * Certain older vintages of cURL give irregular output from
 270   "curl-config --vernum", which confused our build system.
 271   (merge 3af6792 tc/curl-vernum-output-broken-in-7.11 later to maint).
 272
 273 * In v2.2.0, we broke "git prune" that runs in a repository that
 274   borrows from an alternate object store.
 275   (merge b0a4264 jk/prune-mtime later to maint).
 276
 277 * "git submodule add" failed to squash "path/to/././submodule" to
 278   "path/to/submodule".
 279   (merge 8196e72 ps/submodule-sanitize-path-upon-add later to maint).
 280
 281 * "git merge-file" did not work correctly in a subdirectory.
 282   (merge 204a8ff ab/merge-file-prefix later to maint).
 283
 284 * "git blame" died, trying to free an uninitialized piece of memory.
 285   (merge e600592 es/blame-commit-info-fix later to maint).
 286
 287 * "git fast-import" used to crash when it could not close and
 288   conclude the resulting packfile cleanly.
 289   (merge 5e915f3 jk/fast-import-die-nicely-fix later to maint).
 290
 291 * "update-index --refresh" used to leak when an entry cannot be
 292   refreshed for whatever reason.
 293   (merge bc1c2ca sb/plug-leak-in-make-cache-entry later to maint).
 294
 295 * The "interpolated-path" option of "git daemon" inserted any string
 296   client declared on the "host=" capability request without checking.
 297   Sanitize and limit %H and %CH to a saner and a valid DNS name.
 298   (merge b485373 jk/daemon-interpolate later to maint).
 299
 300 * "git daemon" looked up the hostname even when "%CH" and "%IP"
 301   interpolations are not requested, which was unnecessary.
 302   (merge dc8edc8 rs/daemon-interpolate later to maint).
 303
 304 * Even though we officially haven't dropped Perl 5.8 support, the
 305   Getopt::Long package that came with it does not support "--no-"
 306   prefix to negate a boolean option; manually add support to help
 307   people with older Getopt::Long package.
 308   (merge f471494 km/send-email-getopt-long-workarounds later to maint).
 309
 310 * "git apply" was not very careful about reading from, removing,
 311   updating and creating paths outside the working tree (under
 312   --index/--cached) or the current directory (when used as a
 313   replacement for GNU patch).
 314   (merge e0d201b jc/apply-beyond-symlink later to maint).
 315
 316 * A breakage to git-svn around v2.2 era that triggers premature
 317   closing of FileHandle has been corrected.
 318   (merge e426311 ew/svn-maint-fixes later to maint).
 319
 320 * We did not parse username followed by literal IPv6 address in SSH
 321   transport URLs, e.g. ssh://user@[2001:db8::1]:22/repo.git
 322   correctly.
 323   (merge 3f55cca tb/connect-ipv6-parse-fix later to maint).
 324
 325 * The configuration variable 'mailinfo.scissors' was hard to
 326   discover in the documentation.
 327   (merge afb5de7 mm/am-c-doc later to maint).
 328
 329 * The interaction between "git submodule update" and the
 330   submodule.*.update configuration was not clearly documented.
 331   (merge 5c31acf ms/submodule-update-config-doc later to maint).
 332
 333 * "git diff --shortstat --dirstat=changes" showed a dirstat based on
 334   lines that was never asked by the end user in addition to the
 335   dirstat that the user asked for.
 336   (merge ab27389 mk/diff-shortstat-dirstat-fix later to maint).
 337
 338 * "git remote add" mentioned "--tags" and "--no-tags" and was not
 339   clear that fetch from the remote in the future will use the default
 340   behaviour when neither is given to override it.
 341   (merge aaba0ab mg/doc-remote-tags-or-not later to maint).
 342
 343 * Description given by "grep -h" for its --exclude-standard option
 344   was phrased poorly.
 345   (merge 77fdb8a nd/grep-exclude-standard-help-fix later to maint).
 346
 347 * "git rebase -i" recently started to include the number of
 348   commits in the insn sheet to be processed, but on a platform
 349   that prepends leading whitespaces to "wc -l" output, the numbers
 350   are shown with extra whitespaces that aren't necessary.
 351   (merge 2185d3b es/rebase-i-count-todo later to maint).
 352
 353 * The borrowed code in kwset API did not follow our usual convention
 354   to use "unsigned char" to store values that range from 0-255.
 355   (merge 189c860 bw/kwset-use-unsigned later to maint).
 356
 357 * A corrupt input to "git diff -M" used to cause it to segfault.
 358   (merge 4d6be03 jk/diffcore-rename-duplicate later to maint).
 359
 360 * Certain builds of GPG triggered false breakages in a test.
 361   (merge 3f88c1b mg/verify-commit later to maint).
 362
 363 * "git imap-send" learned to optionally talk with an IMAP server via
 364   libcURL; because there is no other option when Git is built with
 365   NO_OPENSSL option, use that codepath by default under such
 366   configuration.
 367   (merge dcd01ea km/imap-send-libcurl-options later to maint).
 368
 369 * "git log --decorate" did not reset colors correctly around the
 370   branch names.
 371   (merge 5ee8758 jc/decorate-leaky-separator-color later to maint).
 372
 373 * Code cleanups and documentaiton updates.
 374   (merge 2ce63e9 rs/simple-cleanups later to maint).
 375   (merge 33baa69 rj/no-xopen-source-for-cygwin later to maint).
 376   (merge 817d03e jc/diff-test-updates later to maint).
 377   (merge eb32c66 ak/t5516-typofix later to maint).
 378   (merge bcd57cb mr/doc-clean-f-f later to maint).
 379   (merge 0d6accc mg/doc-status-color-slot later to maint).
 380   (merge 53e53c7 sg/completion-remote later to maint).
 381   (merge 8fa7975 ak/git-done-help-cleanup later to maint).
 382   (merge 9a6f128 rs/deflate-init-cleanup later to maint).
 383   (merge 6f75d45 rs/use-isxdigit later to maint).