1Git 2.10 Release Notes 2====================== 3 4Backward compatibility notes 5---------------------------- 6 7Updates since v2.9 8------------------ 9 10UI, Workflows & Features 11 12 * "git pull --rebase --verify-signature" learned to warn the user 13 that "--verify-signature" is a no-op when rebasing. 14 15 * An upstream project can make a recommendation to shallowly clone 16 some submodules in the .gitmodules file it ships. 17 18 * "git worktree add" learned that '-' can be used as a short-hand for 19 "@{-1}", the previous branch. 20 21 * Update the funcname definition to support css files. 22 23 * The completion script (in contrib/) learned to complete "git 24 status" options. 25 26 * Messages that are generated by auto gc during "git push" on the 27 receiving end are now passed back to the sending end in such a way 28 that they are shown with "remote: " prefix to avoid confusing the 29 users. 30 31 * "git add -i/-p" learned to honor diff.compactionHeuristic 32 experimental knob, so that the user can work on the same hunk split 33 as "git diff" output. 34 (merge 46e3d17 jk/add-i-diff-compact-heuristics later to maint). 35 36 * "upload-pack" allows a custom "git pack-objects" replacement when 37 responding to "fetch/clone" via the uploadpack.packObjectsHook. 38 (merge 20b20a2 jk/upload-pack-hook later to maint). 39 40 * Teach format-patch and mailsplit (hence "am") how a line that 41 happens to begin with "From " in the e-mail message is quoted with 42 ">", so that these lines can be restored to their original shape. 43 (merge d9925d1 ew/mboxrd-format-am later to maint). 44 45 * "git repack" learned the "--keep-unreachable" option, which sends 46 loose unreachable objects to a pack instead of leaving them loose. 47 This helps heuristics based on the number of loose objects 48 (e.g. "gc --auto"). 49 (merge e26a8c4 jk/repack-keep-unreachable later to maint). 50 51 * "log --graph --format=" learned that "%>|(N)" specifies the width 52 relative to the terminal's left edge, not relative to the area to 53 draw text that is to the right of the ancestry-graph section. It 54 also now accepts negative N that means the column limit is relative 55 to the right border. 56 (merge 066790d nd/graph-width-padded later to maint). 57 58 59Performance, Internal Implementation, Development Support etc. 60 61 * "git fast-import" learned the same performance trick to avoid 62 creating too small a packfile as "git fetch" and "git push" have, 63 using *.unpackLimit configuration. 64 65 * When "git daemon" is run without --[init-]timeout specified, a 66 connection from a client that silently goes offline can hang around 67 for a long time, wasting resources. The socket-level KEEPALIVE has 68 been enabled to allow the OS to notice such failed connections. 69 (merge a43b68a ew/daemon-socket-keepalive later to maint). 70 71 * "git upload-pack" command has been updated to use the parse-options 72 API. 73 74 * The "git apply" standalone program is being libified; this is the 75 first step to move many state variables into a structure that can 76 be explicitly (re)initialized to make the machinery callable more 77 than once. 78 79 * HTTP transport gained an option to produce more detailed debugging 80 trace. 81 (merge 73e57aa ep/http-curl-trace later to maint). 82 83 * Instead of taking advantage of a struct string_list that is 84 allocated with all NULs happens to be STRING_LIST_INIT_NODUP kind, 85 initialize them explicitly as such, to document their behaviour 86 better. 87 (merge 2721ce2 jk/string-list-static-init later to maint). 88 89 * HTTPd tests learned to show the server error log to help diagnosing 90 a failing tests. 91 (merge 44f243d nd/test-lib-httpd-show-error-log-in-verbose later to maint). 92 93 * The ownership rule for the piece of memory that hold references to 94 be fetched in "git fetch" was screwy, which has been cleaned up. 95 (merge b7410f6 km/fetch-do-not-free-remote-name later to maint). 96 97 * "git bisect" makes an internal call to "git diff-tree" when 98 bisection finds the culprit, but this call did not initialize the 99 data structure to pass to the diff-tree API correctly. 100 (merge 43ec550 jk/bisect-show-tree later to maint). 101 102 * Further preparatory clean-up for "worktree" feature continues. 103 (merge 0409e0b nd/worktree-cleanup-post-head-protection later to maint). 104 105 * Formats of the various data (and how to validate them) where we use 106 GPG signature have been documented. 107 (merge cc6ee97 mg/signature-doc later to maint). 108 109 * A new run-command API function pipe_command() is introduced to 110 sanely feed data to the standard input while capturing data from 111 the standard output and the standard error of an external process, 112 which is cumbersome to hand-roll correctly without deadlocking. 113 114 The codepath to sign data in a prepared buffer with GPG has been 115 updated to use this API to read from the status-fd to check for 116 errors (instead of relying on GPG's exit status). 117 (merge efee955 jk/gpg-interface-cleanup later to maint). 118 119 120Also contains various documentation updates and code clean-ups. 121 122 123Fixes since v2.9 124---------------- 125 126Unless otherwise noted, all the fixes since v2.8 in the maintenance 127track are contained in this release (see the maintenance releases' 128notes for details). 129 130 * The commands in `git log` family take %C(auto) in a custom format 131 string. This unconditionally turned the color on, ignoring 132 --no-color or with --color=auto when the output is not connected to 133 a tty; this was corrected to make the format truly behave as 134 "auto". 135 (merge b15a3e0 et/pretty-format-c-auto later to maint). 136 137 * "git rev-list --count" whose walk-length is limited with "-n" 138 option did not work well with the counting optimized to look at the 139 bitmap index. 140 (merge fb85db8 jk/rev-list-count-with-bitmap later to maint). 141 142 * "git show -W" (extend hunks to cover the entire function, delimited 143 by lines that match the "funcname" pattern) used to show the entire 144 file when a change added an entire function at the end of the file, 145 which has been fixed. 146 (merge 6f8d9bc rs/xdiff-hunk-with-func-line later to maint). 147 148 * The documentation set has been updated so that literal commands, 149 configuration variables and environment variables are consistently 150 typeset in fixed-width font and bold in manpages. 151 152 * "git svn propset" subcommand that was added in 2.3 days is 153 documented now. 154 155 * The documentation tries to consistently spell "GPG"; when 156 referring to the specific program name, "gpg" is used. 157 158 * "git reflog" stopped upon seeing an entry that denotes a branch 159 creation event (aka "unborn"), which made it appear as if the 160 reflog was truncated. 161 162 * The git-prompt scriptlet (in contrib/) was not friendly with those 163 who uses "set -u", which has been fixed. 164 165 * compat/regex code did not cleanly compile. 166 167 * A codepath that used alloca(3) to place an unbounded amount of data 168 on the stack has been updated to avoid doing so. 169 170 * "git update-index --add --chmod=+x file" may be usable as an escape 171 hatch, but not a friendly thing to force for people who do need to 172 use it regularly. "git add --chmod=+x file" can be used instead. 173 174 * Build improvements for gnome-keyring (in contrib/) 175 176 * "git status" used to say "working directory" when it meant "working 177 tree". 178 179 * Comments about misbehaving FreeBSD shells have been clarified with 180 the version number (9.x and before are broken, newer ones are OK). 181 182 * "git cherry-pick A" worked on an unborn branch, but "git 183 cherry-pick A..B" didn't. 184 185 * Fix an unintended regression in v2.9 that breaks "clone --depth" 186 that recurses down to submodules by forcing the submodules to also 187 be cloned shallowly, which many server instances that host upstream 188 of the submodules are not prepared for. 189 (merge 18a74a0 sb/clone-shallow-passthru later to maint). 190 191 * Fix unnecessarily waste in the idiomatic use of ': ${VAR=default}' 192 to set the default value, without enclosing it in double quotes. 193 (merge 01247e0 lc/shell-default-value-noexpand later to maint). 194 195 * Some platform-specific code had non-ANSI strict declarations of C 196 functions that do not take any parameters, which has been 197 corrected. 198 (merge 0767172 js/mingw-parameter-less-c-functions later to maint). 199 200 * The internal code used to show local timezone offset is not 201 prepared to handle timestamps beyond year 2100, and gave a 202 bogus offset value to the caller. Use a more benign looking 203 +0000 instead and let "git log" going in such a case, instead 204 of aborting. 205 (merge bab7483 jk/tzoffset-fix later to maint). 206 207 * One among four invocations of readlink(1) in our test suite has 208 been rewritten so that the test can run on systems without the 209 command (others are in valgrind test framework and t9802). 210 (merge d2addc3 ak/t7800-wo-readlink later to maint). 211 212 * t/perf needs /usr/bin/time with GNU extension; the invocation of it 213 is updated to "gtime" on Darwin. 214 (merge e3efa94 js/perf-on-apple later to maint). 215 216 * A bug, which caused "git p4" while running under verbose mode to 217 report paths that are omitted due to branch prefix incorrectly, has 218 been fixed; the command said "Ignoring file outside of prefix" for 219 paths that are _inside_. 220 (merge 09667d0 ao/p4-has-branch-prefix-fix later to maint). 221 222 * Other minor clean-ups and documentation updates 223 (merge e51b0df pb/commit-editmsg-path later to maint). 224 (merge b333d0d jk/send-pack-stdio later to maint). 225 (merge fcf0fe9 lf/sideband-returns-void later to maint). 226 (merge 5819c2e sb/t5614-modernize later to maint). 227 (merge fe0537a cb/t7810-test-label-fix later to maint). 228 (merge 412b9a1 jc/t2300-setup later to maint).