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 35 * "upload-pack" allows a custom "git pack-objects" replacement when 36 responding to "fetch/clone" via the uploadpack.packObjectsHook. 37 (merge 20b20a2 jk/upload-pack-hook later to maint). 38 39 * Teach format-patch and mailsplit (hence "am") how a line that 40 happens to begin with "From " in the e-mail message is quoted with 41 ">", so that these lines can be restored to their original shape. 42 (merge d9925d1 ew/mboxrd-format-am later to maint). 43 44 * "git repack" learned the "--keep-unreachable" option, which sends 45 loose unreachable objects to a pack instead of leaving them loose. 46 This helps heuristics based on the number of loose objects 47 (e.g. "gc --auto"). 48 (merge e26a8c4 jk/repack-keep-unreachable later to maint). 49 50 * "log --graph --format=" learned that "%>|(N)" specifies the width 51 relative to the terminal's left edge, not relative to the area to 52 draw text that is to the right of the ancestry-graph section. It 53 also now accepts negative N that means the column limit is relative 54 to the right border. 55 56 * A careless invocation of "git send-email directory/" after editing 57 0001-change.patch with an editor often ends up sending both 58 0001-change.patch and its backup file, 0001-change.patch~, causing 59 embarrassment and a minor confusion. Detect such an input and 60 offer to skip the backup files when sending the patches out. 61 (merge 531220b jc/send-email-skip-backup later to maint). 62 63 * "git submodule update" that drives many "git clone" could 64 eventually hit flaky servers/network conditions on one of the 65 submodules; the command learned to retry the attempt. 66 67 * The output coloring scheme learned two new attributes, italic and 68 strike, in addition to existing bold, reverse, etc. 69 70 * "git log" learns log.showSignature configuration variable, and a 71 command line option "--no-show-signature" to countermand it. 72 (merge fce04c3 mj/log-show-signature-conf later to maint). 73 74 * A couple of "git svn" updates. 75 76 * More markings of messages for i18n, with updates to various tests 77 to pass GETTEXT_POISON tests. 78 79 * "git archive" learned to handle files that are larger than 8GB and 80 commits far in the future than expressible by the traditional US-TAR 81 format. 82 (merge 5caeeb8 jk/big-and-future-archive-tar later to maint). 83 84 * A new configuration variable core.sshCommand has been added to 85 specify what value for GIT_SSH_COMMAND to use per repository. 86 87 88Performance, Internal Implementation, Development Support etc. 89 90 * "git fast-import" learned the same performance trick to avoid 91 creating too small a packfile as "git fetch" and "git push" have, 92 using *.unpackLimit configuration. 93 94 * When "git daemon" is run without --[init-]timeout specified, a 95 connection from a client that silently goes offline can hang around 96 for a long time, wasting resources. The socket-level KEEPALIVE has 97 been enabled to allow the OS to notice such failed connections. 98 99 * "git upload-pack" command has been updated to use the parse-options 100 API. 101 102 * The "git apply" standalone program is being libified; this is the 103 first step to move many state variables into a structure that can 104 be explicitly (re)initialized to make the machinery callable more 105 than once. 106 107 * HTTP transport gained an option to produce more detailed debugging 108 trace. 109 (merge 73e57aa ep/http-curl-trace later to maint). 110 111 * Instead of taking advantage of a struct string_list that is 112 allocated with all NULs happens to be STRING_LIST_INIT_NODUP kind, 113 initialize them explicitly as such, to document their behaviour 114 better. 115 (merge 2721ce2 jk/string-list-static-init later to maint). 116 117 * HTTPd tests learned to show the server error log to help diagnosing 118 a failing tests. 119 (merge 44f243d nd/test-lib-httpd-show-error-log-in-verbose later to maint). 120 121 * The ownership rule for the piece of memory that hold references to 122 be fetched in "git fetch" was screwy, which has been cleaned up. 123 124 * "git bisect" makes an internal call to "git diff-tree" when 125 bisection finds the culprit, but this call did not initialize the 126 data structure to pass to the diff-tree API correctly. 127 128 * Further preparatory clean-up for "worktree" feature continues. 129 (merge 0409e0b nd/worktree-cleanup-post-head-protection later to maint). 130 131 * Formats of the various data (and how to validate them) where we use 132 GPG signature have been documented. 133 134 * A new run-command API function pipe_command() is introduced to 135 sanely feed data to the standard input while capturing data from 136 the standard output and the standard error of an external process, 137 which is cumbersome to hand-roll correctly without deadlocking. 138 139 The codepath to sign data in a prepared buffer with GPG has been 140 updated to use this API to read from the status-fd to check for 141 errors (instead of relying on GPG's exit status). 142 (merge efee955 jk/gpg-interface-cleanup later to maint). 143 144 * Allow t/perf framework to use the features from the most recent 145 version of Git even when testing an older installed version. 146 147 * The commands in the "log/diff" family have had an FILE* pointer in the 148 data structure they pass around for a long time, but some codepaths 149 used to always write to the standard output. As a preparatory step 150 to make "git format-patch" available to the internal callers, these 151 codepaths have been updated to consistently write into that FILE* 152 instead. 153 154 * Conversion from unsigned char sha1[20] to struct object_id 155 continues. 156 157 * Improve the look of the way "git fetch" reports what happened to 158 each ref that was fetched. 159 (merge bc437d1 nd/fetch-ref-summary later to maint). 160 161 * The .c/.h sources are marked as such in our .gitattributes file so 162 that "git diff -W" and friends would work better. 163 (merge e82675a rs/help-c-source-with-gitattributes later to maint). 164 165 * Code clean-up to avoid using a variable string that compilers may 166 feel untrustable as printf-style format given to write_file() 167 helper function. 168 169 * "git p4" used a location outside $GIT_DIR/refs/ to place its 170 temporary branches, which has been moved to refs/git-p4-tmp/. 171 172 173Also contains various documentation updates and code clean-ups. 174 175 176Fixes since v2.9 177---------------- 178 179Unless otherwise noted, all the fixes since v2.8 in the maintenance 180track are contained in this release (see the maintenance releases' 181notes for details). 182 183 * The commands in `git log` family take %C(auto) in a custom format 184 string. This unconditionally turned the color on, ignoring 185 --no-color or with --color=auto when the output is not connected to 186 a tty; this was corrected to make the format truly behave as 187 "auto". 188 189 * "git rev-list --count" whose walk-length is limited with "-n" 190 option did not work well with the counting optimized to look at the 191 bitmap index. 192 193 * "git show -W" (extend hunks to cover the entire function, delimited 194 by lines that match the "funcname" pattern) used to show the entire 195 file when a change added an entire function at the end of the file, 196 which has been fixed. 197 198 * The documentation set has been updated so that literal commands, 199 configuration variables and environment variables are consistently 200 typeset in fixed-width font and bold in manpages. 201 202 * "git svn propset" subcommand that was added in 2.3 days is 203 documented now. 204 205 * The documentation tries to consistently spell "GPG"; when 206 referring to the specific program name, "gpg" is used. 207 208 * "git reflog" stopped upon seeing an entry that denotes a branch 209 creation event (aka "unborn"), which made it appear as if the 210 reflog was truncated. 211 212 * The git-prompt scriptlet (in contrib/) was not friendly with those 213 who uses "set -u", which has been fixed. 214 215 * compat/regex code did not cleanly compile. 216 217 * A codepath that used alloca(3) to place an unbounded amount of data 218 on the stack has been updated to avoid doing so. 219 220 * "git update-index --add --chmod=+x file" may be usable as an escape 221 hatch, but not a friendly thing to force for people who do need to 222 use it regularly. "git add --chmod=+x file" can be used instead. 223 224 * Build improvements for gnome-keyring (in contrib/) 225 226 * "git status" used to say "working directory" when it meant "working 227 tree". 228 229 * Comments about misbehaving FreeBSD shells have been clarified with 230 the version number (9.x and before are broken, newer ones are OK). 231 232 * "git cherry-pick A" worked on an unborn branch, but "git 233 cherry-pick A..B" didn't. 234 235 * Fix an unintended regression in v2.9 that breaks "clone --depth" 236 that recurses down to submodules by forcing the submodules to also 237 be cloned shallowly, which many server instances that host upstream 238 of the submodules are not prepared for. 239 240 * Fix unnecessarily waste in the idiomatic use of ': ${VAR=default}' 241 to set the default value, without enclosing it in double quotes. 242 243 * Some platform-specific code had non-ANSI strict declarations of C 244 functions that do not take any parameters, which has been 245 corrected. 246 247 * The internal code used to show local timezone offset is not 248 prepared to handle timestamps beyond year 2100, and gave a 249 bogus offset value to the caller. Use a more benign looking 250 +0000 instead and let "git log" going in such a case, instead 251 of aborting. 252 (merge bab7483 jk/tzoffset-fix later to maint). 253 254 * One among four invocations of readlink(1) in our test suite has 255 been rewritten so that the test can run on systems without the 256 command (others are in valgrind test framework and t9802). 257 258 * t/perf needs /usr/bin/time with GNU extension; the invocation of it 259 is updated to "gtime" on Darwin. 260 261 * A bug, which caused "git p4" while running under verbose mode to 262 report paths that are omitted due to branch prefix incorrectly, has 263 been fixed; the command said "Ignoring file outside of prefix" for 264 paths that are _inside_. 265 266 * The top level documentation "git help git" still pointed at the 267 documentation set hosted at now-defunct google-code repository. 268 Update it to point to https://git.github.io/htmldocs/git.html 269 instead. 270 271 * A helper function that takes the contents of a commit object and 272 finds its subject line did not ignore leading blank lines, as is 273 commonly done by other codepaths. Make it ignore leading blank 274 lines to match. 275 (merge 054a5ae js/find-commit-subject-ignore-leading-blanks later to maint). 276 277 * For a long time, we carried an in-code comment that said our 278 colored output would work only when we use fprintf/fputs on 279 Windows, which no longer is the case for the past few years. 280 (merge 3d0a833 js/color-on-windows-comment later to maint). 281 282 * "gc.autoPackLimit" when set to 1 should not trigger a repacking 283 when there is only one pack, but the code counted poorly and did 284 so. 285 (merge 5f4e3bf ew/gc-auto-pack-limit-fix later to maint). 286 287 * Add a test to specify the desired behaviour that currently is not 288 available in "git rebase -Xsubtree=...". 289 (merge 5f35900 dg/subtree-rebase-test later to maint). 290 291 * More mark-up updates to typeset strings that are expected to 292 literally typed by the end user in fixed-width font. 293 (merge 661c3e9 mm/doc-tt later to maint). 294 295 * "git commit --amend --allow-empty-message -S" for a commit without 296 any message body could have misidentified where the header of the 297 commit object ends. 298 (merge 3324dd8 js/sign-empty-commit-fix later to maint). 299 300 * "git rebase -i --autostash" did not restore the auto-stashed change 301 when the operation was aborted. 302 (merge 33ba9c6 ps/rebase-i-auto-unstash-upon-abort later to maint). 303 304 * Git does not know what the contents in the index should be for a 305 path added with "git add -N" yet, so "git grep --cached" should not 306 show hits (or show lack of hits, with -L) in such a path, but that 307 logic does not apply to "git grep", i.e. searching in the working 308 tree files. But we did so by mistake, which has been corrected. 309 (merge b8e47d1 nd/ita-cleanup later to maint). 310 311 * "git blame -M" missed a single line that was moved within the file. 312 (merge 17a07e2 dk/blame-move-no-reason-for-1-line-context later to maint). 313 314 * Fix recently introduced codepaths that are involved in parallel 315 submodule operations, which gave up on reading too early, and 316 could have wasted CPU while attempting to write under a corner 317 case condition. 318 (merge d751dd1 sb/submodule-parallel-fetch later to maint). 319 320 * "git grep -i" has been taught to fold case in non-ascii locales 321 correctly. 322 (merge 695f95b nd/icase later to maint). 323 324 * A test that unconditionally used "mktemp" learned that the command 325 is not necessarily available everywhere. 326 (merge c578a09 ak/lazy-prereq-mktemp later to maint). 327 328 * There are certain house-keeping tasks that need to be performed at 329 the very beginning of any Git program, and programs that are not 330 built-in commands had to do them exactly the same way as "git" 331 potty does. It was easy to make mistakes in one-off standalone 332 programs (like test helpers). A common "main()" function that 333 calls cmd_main() of individual program has been introduced to 334 make it harder to make mistakes. 335 (merge de61ceb jk/common-main later to maint). 336 337 * The test framework learned a new helper test_match_signal to 338 check an exit code from getting killed by an expected signal. 339 (merge 03c39b3 jk/test-match-signal later to maint). 340 341 * General code clean-up around a helper function to write a 342 single-liner to a file. 343 (merge 7eb6e10 jk/write-file later to maint). 344 345 * One part of "git am" had an oddball helper function that called 346 stuff from outside "his" as opposed to calling what we have "ours", 347 which was not gender-neutral and also inconsistent with the rest of 348 the system where outside stuff is usuall called "theirs" in 349 contrast to "ours". 350 (merge 715a51b js/am-call-theirs-theirs-in-fallback-3way later to maint). 351 352 * Other minor clean-ups and documentation updates 353 (merge e51b0df pb/commit-editmsg-path later to maint). 354 (merge b333d0d jk/send-pack-stdio later to maint). 355 (merge fcf0fe9 lf/sideband-returns-void later to maint). 356 (merge c2691e2 ah/unpack-trees-advice-messages later to maint). 357 (merge 82f6178 nd/doc-new-command later to maint). 358 (merge fa90ab4 js/t3404-grammo-fix later to maint). 359 (merge c61b2af lf/recv-sideband-cleanup later to maint).