Documentation / RelNotes / 1.8.5.txton commit Merge branch 'jx/clean-interactive' (13f17f3)
   1Git v1.8.5 Release Notes
   2========================
   3
   4Backward compatibility notes (for Git 2.0)
   5------------------------------------------
   6
   7When "git push [$there]" does not say what to push, we have used the
   8traditional "matching" semantics so far (all your branches were sent
   9to the remote as long as there already are branches of the same name
  10over there).  In Git 2.0, the default will change to the "simple"
  11semantics that pushes:
  12
  13 - only the current branch to the branch with the same name, and only
  14   when the current branch is set to integrate with that remote
  15   branch, if you are pushing to the same remote as you fetch from; or
  16
  17 - only the current branch to the branch with the same name, if you
  18   are pushing to a remote that is not where you usually fetch from.
  19
  20Use the user preference configuration variable "push.default" to
  21change this.  If you are an old-timer who is used to the "matching"
  22semantics, you can set the variable to "matching" to keep the
  23traditional behaviour.  If you want to live in the future early, you
  24can set it to "simple" today without waiting for Git 2.0.
  25
  26When "git add -u" (and "git add -A") is run inside a subdirectory and
  27does not specify which paths to add on the command line, it
  28will operate on the entire tree in Git 2.0 for consistency
  29with "git commit -a" and other commands.  There will be no
  30mechanism to make plain "git add -u" behave like "git add -u .".
  31Current users of "git add -u" (without a pathspec) should start
  32training their fingers to explicitly say "git add -u ."
  33before Git 2.0 comes.  A warning is issued when these commands are
  34run without a pathspec and when you have local changes outside the
  35current directory, because the behaviour in Git 2.0 will be different
  36from today's version in such a situation.
  37
  38In Git 2.0, "git add <path>" will behave as "git add -A <path>", so
  39that "git add dir/" will notice paths you removed from the directory
  40and record the removal.  Versions before Git 2.0, including this
  41release, will keep ignoring removals, but the users who rely on this
  42behaviour are encouraged to start using "git add --ignore-removal <path>"
  43now before 2.0 is released.
  44
  45
  46Updates since v1.8.4
  47--------------------
  48
  49Foreign interfaces, subsystems and ports.
  50
  51 * "git-svn" used with SVN 1.8.0 when talking over https:// connection
  52   dumped core due to a bug in the serf library that SVN uses.  Work
  53   it around on our side, even though the SVN side is being fixed.
  54
  55 * On MacOS X, we detected if the filesystem needs the "pre-composed
  56   unicode strings" workaround, but did not automatically enable it.
  57   Now we do.
  58
  59 * remote-hg remote helper misbehaved when interacting with a local Hg
  60   repository relative to the home directory, e.g. "clone hg::~/there".
  61
  62 * imap-send ported to OS X uses Apple's security framework instead of
  63   OpenSSL one.
  64
  65 * Subversion 1.8.0 that was recently released breaks older subversion
  66   clients coming over http/https in various ways.
  67
  68 * "git fast-import" treats an empty path given to "ls" as the root of
  69   the tree.
  70
  71
  72UI, Workflows & Features
  73
  74 * Instead of typing four capital letters "HEAD", you can say "@" now,
  75   e.g. "git log @".
  76
  77 * "git check-ignore" follows the same rule as "git add" and "git
  78   status" in that the ignore/exclude mechanism does not take effect
  79   on paths that are already tracked.  With "--no-index" option, it
  80   can be used to diagnose which paths that should have been ignored
  81   have been mistakenly added to the index.
  82
  83 * Some irrelevant "advice" messages that are shared with "git status"
  84   output have been removed from the commit log template.
  85
  86 * "update-refs" learnt a "--stdin" option to read multiple update
  87   requests and perform them in an all-or-none fashion.
  88
  89 * Just like "make -C <directory>", "git -C <directory> ..." tells Git
  90   to go there before doing anything else.
  91
  92 * Just like "git checkout -" knows to check out and "git merge -"
  93   knows to merge the branch you were previously on, "git cherry-pick"
  94   now understands "git cherry-pick -" to pick from the previous
  95   branch.
  96
  97 * "git status" now omits the prefix to make its output a comment in a
  98   commit log editor, which is not necessary for human consumption.
  99   Scripts that parse the output of "git status" are advised to use
 100   "git status --porcelain" instead, as its format is stable and easier
 101   to parse.
 102
 103 * Make "foo^{tag}" to peel a tag to itself, i.e. no-op., and fail if
 104   "foo" is not a tag.  "git rev-parse --verify v1.0^{tag}" would be
 105   a more convenient way to say "test $(git cat-file -t v1.0) = tag".
 106
 107 * "git branch -v -v" (and "git status") did not distinguish among a
 108   branch that does not build on any other branch, a branch that is in
 109   sync with the branch it builds on, and a branch that is configured
 110   to build on some other branch that no longer exists.
 111
 112 * A packfile that stores the same object more than once is broken and
 113   will be rejected by "git index-pack" that is run when receiving
 114   data over the wire.
 115
 116 * Earlier we started rejecting an attempt to add 0{40} object name to
 117   the index and to tree objects, but it sometimes is necessary to
 118   allow so to be able to use tools like filter-branch to correct such
 119   broken tree objects.  "filter-branch" can again be used to to do
 120   so.
 121
 122 * "git config" did not provide a way to set or access numbers larger
 123   than a native "int" on the platform; it now provides 64-bit signed
 124   integers on all platforms.
 125
 126 * "git pull --rebase" always chose to do the bog-standard flattening
 127   rebase.  You can tell it to run "rebase --preserve-merges" by
 128   setting "pull.rebase" configuration to "preserve".
 129
 130 * "git push --no-thin" actually disables the "thin pack transfer"
 131   optimization.
 132
 133 * Magic pathspecs like ":(icase)makefile" that matches both
 134   Makefile and makefile can be used in more places.
 135
 136 * The "http.*" variables can now be specified per URL that the
 137   configuration applies.  For example,
 138
 139   [http]
 140       sslVerify = true
 141   [http "https://weak.example.com/"]
 142       sslVerify = false
 143
 144   would flip http.sslVerify off only when talking to that specified
 145   site.
 146
 147 * "git mv A B" when moving a submodule A has been taught to
 148   relocate its working tree and to adjust the paths in the
 149   .gitmodules file.
 150
 151 * "git blame" can now take more than one -L option to discover the
 152   origin of multiple blocks of the lines.
 153
 154 * The http transport clients can optionally ask to save cookies
 155   with http.savecookies configuration variable.
 156
 157 * "git push" learned a more fine grained control over a blunt
 158   "--force" when requesting a non-fast-forward update with the
 159   "--force-with-lease=<refname>:<expected object name>" option.
 160
 161 * "git diff --diff-filter=<classes of changes>" can now take
 162   lowercase letters (e.g. "--diff-filter=d") to mean "show
 163   everything but these classes".  "git diff-files -q" is now a
 164   deprecated synonym for "git diff-files --diff-filter=d".
 165
 166 * "git fetch" (hence "git pull" as well) learned to check
 167   "fetch.prune" and "remote.*.prune" configuration variables and
 168   to behave as if the "--prune" command line option was given.
 169
 170 * "git check-ignore -z" applied the NUL termination to both its input
 171   (with --stdin) and its output, but "git check-attr -z" ignored the
 172   option on the output side. Make both honor -z on the input and
 173   output side the same way.
 174
 175 * "git whatchanged" may still be used by old timers, but mention of
 176   it in documents meant for new users will only waste readers' time
 177   wonderig what the difference is between it and "git log".  Make it
 178   less prominent in the general part of the documentation and explain
 179   that it is merely a "git log" with different default behaviour in
 180   its own document.
 181
 182
 183Performance, Internal Implementation, etc.
 184
 185 * If a build-time fallback is set to "cat" instead of "less", we
 186   should apply the same "no subprocess or pipe" optimization as we
 187   apply to user-supplied GIT_PAGER=cat.
 188
 189 * Many commands use --dashed-option as a operation mode selector
 190   (e.g. "git tag --delete") that the user can use at most one
 191   (e.g. "git tag --delete --verify" is a nonsense) and you cannot
 192   negate (e.g. "git tag --no-delete" is a nonsense).  parse-options
 193   API learned a new OPT_CMDMODE macro to make it easier to implement
 194   such a set of options.
 195
 196 * OPT_BOOLEAN() in parse-options API was misdesigned to be "counting
 197   up" but many subcommands expect it to behave as "on/off". Update
 198   them to use OPT_BOOL() which is a proper boolean.
 199
 200 * "git gc" exits early without doing a double-work when it detects
 201   that another instance of itself is already running.
 202
 203 * Under memory pressure and/or file descriptor pressure, we used to
 204   close pack windows that are not used and also closed filehandle to
 205   an open but unused packfiles. These are now controlled separately
 206   to better cope with the load.
 207
 208Also contains various documentation updates and code clean-ups.
 209
 210
 211Fixes since v1.8.4
 212------------------
 213
 214Unless otherwise noted, all the fixes since v1.8.4 in the maintenance
 215track are contained in this release (see release notes to them for
 216details).
 217
 218 * When running "fetch -q", a long silence while the sender side
 219   computes the set of objects to send can be mistaken by proxies as
 220   dropped connection.  The server side has been taught to send a
 221   small empty messages to keep the connection alive.
 222   (merge 115dedd jk/upload-pack-keepalive later to maint).
 223
 224 * "git rebase" had a portability regression in v1.8.4 to trigger a
 225   bug in some BSD shell implementations.
 226   (merge 99855dd mm/rebase-continue-freebsd-WB later to maint).
 227
 228 * "git branch --track" had a minor regression in v1.8.3.2 and later
 229   that made it impossible to base your local work on anything but a
 230   local branch of the upstream repository you are tracking from.
 231   (merge b0f49ff jh/checkout-auto-tracking later to maint).
 232
 233 * When the webserver responds with "405 Method Not Allowed", "git
 234   http-backend" should tell the client what methods are allowed with
 235   the "Allow" header.
 236   (merge 9247be0 bc/http-backend-allow-405 later to maint).
 237
 238 * When there is no sufficient overlap between old and new history
 239   during a "git fetch" into a shallow repository, objects that the
 240   sending side knows the receiving end has were unnecessarily sent.
 241   (merge f21d2a7 nd/fetch-into-shallow later to maint).
 242
 243 * "git cvsserver" computed the permission mode bits incorrectly for
 244   executable files.
 245   (merge 1b48d56 jc/cvsserver-perm-bit-fix later to maint).
 246
 247 * When send-email comes up with an error message to die with upon
 248   failure to start an SSL session, it tried to read the error string
 249   from a wrong place.
 250   (merge 6cb0c88 bc/send-email-ssl-die-message-fix later to maint).
 251
 252 * The implementation of "add -i" has a crippling code to work around
 253   ActiveState Perl limitation but it by mistake also triggered on Git
 254   for Windows where MSYS perl is used.
 255   (merge df17e77 js/add-i-mingw later to maint).
 256
 257 * We made sure that we notice the user-supplied GIT_DIR is actually a
 258   gitfile, but did not do the same when the default ".git" is a
 259   gitfile.
 260   (merge 487a2b7 nd/git-dir-pointing-at-gitfile later to maint).
 261
 262 * When an object is not found after checking the packfiles and then
 263   loose object directory, read_sha1_file() re-checks the packfiles to
 264   prevent racing with a concurrent repacker; teach the same logic to
 265   has_sha1_file().
 266   (merge 45e8a74 jk/has-sha1-file-retry-packed later to maint).
 267
 268 * "git commit --author=$name", when $name is not in the canonical
 269   "A. U. Thor <au.thor@example.xz>" format, looks for a matching name
 270   from existing history, but did not consult mailmap to grab the
 271   preferred author name.
 272   (merge ea16794 ap/commit-author-mailmap later to maint).
 273
 274 * "git ls-files -k" needs to crawl only the part of the working tree
 275   that may overlap the paths in the index to find killed files, but
 276   shared code with the logic to find all the untracked files, which
 277   made it unnecessarily inefficient.
 278   (merge 680be04 jc/ls-files-killed-optim later to maint).
 279
 280 * The commit object names in the insn sheet that was prepared at the
 281   beginning of "rebase -i" session can become ambiguous as the
 282   rebasing progresses and the repository gains more commits. Make
 283   sure the internal record is kept with full 40-hex object names.
 284   (merge 75c6976 es/rebase-i-no-abbrev later to maint).
 285
 286 * "git rebase --preserve-merges" internally used the merge machinery
 287   and as a side effect, left merge summary message in the log, but
 288   when rebasing, there should not be a need for merge summary.
 289   (merge a9f739c rt/rebase-p-no-merge-summary later to maint).
 290
 291 * A call to xread() was used without a loop around to cope with short
 292   read in the codepath to stream new contents to a pack.
 293   (merge e92527c js/xread-in-full later to maint).
 294
 295 * "git rebase -i" forgot that the comment character can be
 296   configurable while reading its insn sheet.
 297   (merge 7bca7af es/rebase-i-respect-core-commentchar later to maint).
 298
 299 * The mailmap support code read past the allocated buffer when the
 300   mailmap file ended with an incomplete line.
 301   (merge f972a16 jk/mailmap-incomplete-line later to maint).
 302
 303 * We used to send a large request to read(2)/write(2) as a single
 304   system call, which was bad from the latency point of view when
 305   the operation needs to be killed, and also triggered an error on
 306   broken 64-bit systems that refuse to take more than 2GB read or
 307   write in one go.
 308   (merge a487916 sp/clip-read-write-to-8mb later to maint).
 309
 310 * "git fetch" that auto-followed tags incorrectly reused the
 311   connection with Git-aware transport helper (like the sample "ext::"
 312   helper shipped with Git).
 313   (merge 0f73f8b jc/transport-do-not-use-connect-twice-in-fetch later to maint).
 314
 315 * "git log --full-diff -- <pathspec>" showed a huge diff for paths
 316   outside the given <pathspec> for each commit, instead of showing
 317   the change relative to the parent of the commit.  "git reflog -p"
 318   had a similar problem.
 319   (merge 838f9a1 tr/log-full-diff-keep-true-parents later to maint).
 320
 321 * Setting submodule.*.path configuration variable to true (without
 322   giving "= value") caused Git to segfault.
 323   (merge 4b05440 jl/some-submodule-config-are-not-boolean later to maint).
 324
 325 * "git rebase -i" (there could be others, as the root cause is pretty
 326   generic) fed a random, data dependeant string to 'echo' and
 327   expects it to come out literally, corrupting its error message.
 328   (merge 89b0230 mm/no-shell-escape-in-die-message later to maint).
 329
 330 * Some people still use rather old versions of bash, which cannot
 331   grok some constructs like 'printf -v varname' the prompt and
 332   completion code started to use recently.
 333   (merge a44aa69 bc/completion-for-bash-3.0 later to maint).
 334
 335 * Code to read configuration from a blob object did not compile on
 336   platforms with fgetc() etc. implemented as macros.
 337   (merge 49d6cfa hv/config-from-blob later to maint-1.8.3).
 338
 339 * The recent "short-cut clone connectivity check" topic broke a
 340   shallow repository when a fetch operation tries to auto-follow tags.
 341   (merge 6da8bdc nd/fetch-pack-shallow-fix later to maint-1.8.3).