Documentation / RelNotes / 2.5.0.txton commit lockfile: replace random() by rand() (1e9676e)
   1Git 2.5 Release Notes
   2=====================
   3
   4Updates since v2.4
   5------------------
   6
   7Ports
   8
   9
  10UI, Workflows & Features
  11
  12 * "git p4" now detects the filetype (e.g. binary) correctly even when
  13   the files are opened exclusively.
  14
  15 * git p4 attempts to better handle branches in Perforce.
  16
  17 * "git p4" learned "--changes-block-size <n>" to read the changes in
  18   chunks from Perforce, instead of making one call to "p4 changes"
  19   that may trigger "too many rows scanned" error from Perforce.
  20
  21 * "git show-branch --topics HEAD" (with no other arguments) did not
  22   do anything interesting.  Instead, contrast the given revision
  23   against all the local branches by default.
  24
  25 * A replacement for contrib/workdir/git-new-workdir that does not
  26   rely on symbolic links and make sharing of objects and refs safer
  27   by making the borrowee and borrowers aware of each other.
  28
  29 * Tweak the sample "store" backend of the credential helper to honor
  30   XDG configuration file locations when specified.
  31
  32
  33Performance, Internal Implementation, Development Support etc.
  34
  35 * "unsigned char [20]" used thoughout the code to represent object
  36   names are being converted into a semi-opaque "struct object_id".
  37   This effort is expected to interfere with other topics in flight,
  38   but hopefully will give us one extra level of abstraction in the
  39   end, when completed.
  40
  41 * Catch a programmer mistake to feed a pointer not an array to
  42   ARRAY_SIZE() macro, by using a couple of GCC extensions.
  43   (merge 89c855e ep/do-not-feed-a-pointer-to-array-size later to maint).
  44
  45 * Some error messages in "git config" were emitted without calling
  46   the usual error() facility.
  47
  48 * When "add--interactive" splits a hunk into two overlapping hunks
  49   and then let the user choose only one, it sometimes feeds an
  50   incorrect patch text to "git apply".  Add tests to demonstrate
  51   this.
  52
  53   I have a slight suspicion that this may be $gmane/87202 coming back
  54   and biting us (I seem to have said "let's run with this and see
  55   what happens" back then).
  56
  57 * More line-ending tests.
  58
  59 * An earlier rewrite to use strbuf_getwholeline() instead of fgets(3)
  60   to read packed-refs file revealed that the former is unacceptably
  61   inefficient.
  62
  63 * Many long-running operations show progress eye-candy, even when
  64   they are later backgrounded.  Hide the eye-candy when the process
  65   is sent to the background instead.
  66   (merge 9a9a41d lm/squelch-bg-progress later to maint).
  67
  68
  69Also contains various documentation updates and code clean-ups.
  70
  71
  72Fixes since v2.4
  73----------------
  74
  75Unless otherwise noted, all the fixes since v2.4 in the maintenance
  76track are contained in this release (see the maintenance releases'
  77notes for details).
  78
  79 * Memory usage of "git index-pack" has been trimmed by tens of
  80   per-cent.
  81   (merge c6458e6 nd/slim-index-pack-memory-usage later to maint).
  82
  83 * "git rev-list --objects $old --not --all" to see if everything that
  84   is reachable from $old is already connected to the existing refs
  85   was very inefficient.
  86   (merge b6e8a3b jk/still-interesting later to maint).
  87
  88 * "hash-object --literally" introduced in v2.2 was not prepared to
  89   take a really long object type name.
  90   (merge 1427a7f jc/hash-object later to maint).
  91
  92 * "git rebase --quiet" was not quite quiet when there is nothing to
  93   do.
  94   (merge 22946a9 jk/rebase-quiet-noop later to maint).
  95
  96 * The completion for "log --decorate=" parameter value was incorrect.
  97   (merge af16bda sg/complete-decorate-full-not-long later to maint).
  98
  99 * "filter-branch" corrupted commit log message that ends with an
 100   incomplete line on platforms with some "sed" implementations that
 101   munge such a line.  Work it around by avoiding to use "sed".
 102   (merge df06201 jk/filter-branch-use-of-sed-on-incomplete-line later to maint).
 103
 104 * "git daemon" fails to build from the source under NO_IPV6
 105   configuration (regression in 2.4).
 106   (merge d358f77 jc/daemon-no-ipv6-for-2.4.1 later to maint).
 107
 108 * Some time ago, "git blame" (incorrectly) lost the convert_to_git()
 109   call when synthesizing a fake "tip" commit that represents the
 110   state in the working tree, which broke folks who record the history
 111   with LF line ending to make their project portabile across
 112   platforms while terminating lines in their working tree files with
 113   CRLF for their platform.
 114   (merge 4bf256d tb/blame-resurrect-convert-to-git later to maint).
 115
 116 * We avoid setting core.worktree when the repository location is the
 117   ".git" directory directly at the top level of the working tree, but
 118   the code misdetected the case in which the working tree is at the
 119   root level of the filesystem (which arguably is a silly thing to
 120   do, but still valid).
 121   (merge 84ccad8 jk/init-core-worktree-at-root later to maint).
 122
 123 * "git commit --date=now" or anything that relies on approxidate lost
 124   the daylight-saving-time offset.
 125   (merge f6e6362 jc/epochtime-wo-tz later to maint).
 126
 127 * Access to objects in repositories that borrow from another one on a
 128   slow NFS server unnecessarily got more expensive due to recent code
 129   becoming more cautious in a naive way not to lose objects to pruning.
 130   (merge ee1c6c3 jk/prune-mtime later to maint).
 131
 132 * The codepaths that read .gitignore and .gitattributes files have been
 133   taught that these files encoded in UTF-8 may have UTF-8 BOM marker at
 134   the beginning; this makes it in line with what we do for configuration
 135   files already.
 136   (merge 27547e5 cn/bom-in-gitignore later to maint).
 137
 138 * a few helper scripts in the test suite did not report errors
 139   correcty.
 140   (merge de248e9 ep/fix-test-lib-functions-report later to maint).
 141
 142 * The default $HOME/.gitconfig file created upon "git config --global"
 143   that edits it had incorrectly spelled user.name and user.email
 144   entries in it.
 145   (merge 7e11052 oh/fix-config-default-user-name-section later to maint).
 146
 147 * "git cat-file bl $blob" failed to barf even though there is no
 148   object type that is "bl".
 149   (merge b7994af jk/type-from-string-gently later to maint).
 150
 151 * The usual "git diff" when seeing a file turning into a directory
 152   showed a patchset to remove the file and create all files in the
 153   directory, but "git diff --no-index" simply refused to work.  Also,
 154   when asked to compare a file and a directory, imitate POSIX "diff"
 155   and compare the file with the file with the same name in the
 156   directory, instead of refusing to run.
 157   (merge 0615173 jc/diff-no-index-d-f later to maint).
 158
 159 * Code cleanups and documentation updates.
 160   (merge 0269f96 mm/usage-log-l-can-take-regex later to maint).
 161   (merge 64f2589 nd/t1509-chroot-test later to maint).
 162   (merge f86a374 sb/test-bitmap-free-at-end later to maint).
 163   (merge 05bfc7d sb/line-log-plug-pairdiff-leak later to maint).
 164   (merge 846e5df pt/xdg-config-path later to maint).
 165   (merge 1154aa4 jc/plug-fmt-merge-msg-leak later to maint).
 166   (merge 319b678 jk/sha1-file-reduce-useless-warnings later to maint).