1Git 2.18 Release Notes 2====================== 3 4Updates since v2.17 5------------------- 6 7UI, Workflows & Features 8 9 * Rename detection logic in "diff" family that is used in "merge" has 10 learned to guess when all of x/a, x/b and x/c have moved to z/a, 11 z/b and z/c, it is likely that x/d added in the meantime would also 12 want to move to z/d by taking the hint that the entire directory 13 'x' moved to 'z'. A bug causing dirty files involved in a rename 14 to be overwritten during merge has also been fixed as part of this 15 work. 16 17 * "git filter-branch" learned to use a different exit code to allow 18 the callers to tell the case where there was no new commits to 19 rewrite from other error cases. 20 21 * When built with more recent cURL, GIT_SSL_VERSION can now specify 22 "tlsv1.3" as its value. 23 24 * "git gui" learned that "~/.ssh/id_ecdsa.pub" and 25 "~/.ssh/id_ed25519.pub" are also possible SSH key files. 26 (merge 2e2f0288ef bb/git-gui-ssh-key-files later to maint). 27 28 * "git gui" performs commit upon CTRL/CMD+ENTER but the 29 CTRL/CMD+KP_ENTER (i.e. enter key on the numpad) did not have the 30 same key binding. It now does. 31 (merge 28a1d94a06 bp/git-gui-bind-kp-enter later to maint). 32 33 * "git gui" has been taught to work with old versions of tk (like 34 8.5.7) that do not support "ttk::style theme use" as a way to query 35 the current theme. 36 (merge 4891961105 cb/git-gui-ttk-style later to maint). 37 38 * "git rebase" has learned to honor "--signoff" option when using 39 backends other than "am" (but not "--preserve-merges"). 40 41 * "git branch --list" during an interrupted "rebase -i" now lets 42 users distinguish the case where a detached HEAD is being rebased 43 and a normal branch is being rebased. 44 45 * "git mergetools" learned talking to guiffy. 46 47 48Performance, Internal Implementation, Development Support etc. 49 50 * A "git fetch" from a repository with insane number of refs into a 51 repository that is already up-to-date still wasted too many cycles 52 making many lstat(2) calls to see if these objects at the tips 53 exist as loose objects locally. These lstat(2) calls are optimized 54 away by enumerating all loose objects beforehand. 55 It is unknown if the new strategy negatively affects existing use 56 cases, fetching into a repository with many loose objects from a 57 repository with small number of refs. 58 59 * Git can be built to use either v1 or v2 of the PCRE library, and so 60 far, the build-time configuration USE_LIBPCRE=YesPlease instructed 61 the build procedure to use v1, but now it means v2. USE_LIBPCRE1 62 and USE_LIBPCRE2 can be used to explicitly choose which version to 63 use, as before. 64 65 * The build procedure learned to optionally use symbolic links 66 (instead of hardlinks and copies) to install "git-foo" for built-in 67 commands, whose binaries are all identical. 68 69 * Conversion from uchar[20] to struct object_id continues. 70 71 * The way "git worktree prune" worked internally has been simplified, 72 by assuming how "git worktree move" moves an existing worktree to a 73 different place. 74 75 * Code clean-up for the "repository" abstraction. 76 (merge 00a3da2a13 nd/remove-ignore-env-field later to maint). 77 78 * Code to find the length to uniquely abbreviate object names based 79 on packfile content, which is a relatively recent addtion, has been 80 optimized to use the same fan-out table. 81 82 * The mechanism to use parse-options API to automate the command line 83 completion continues to get extended and polished. 84 85 * Copies of old scripted Porcelain commands in contrib/examples/ have 86 been removed. 87 88 * Some tests that rely on the exact hardcoded values of object names 89 have been updated in preparation for hash function migration. 90 91 * Perf-test update. 92 93 * Test helper update. 94 95 * The effort continues to refactor the internal global data structure 96 to make it possible to open multiple repositories, work with and 97 then close them, 98 99 * Small test-helper programs have been consolidated into a single 100 binary. 101 102 * API clean-up around ref-filter code. 103 104 * Shell completion (in contrib) that gives list of paths have been 105 optimized somewhat. 106 107 * The index file is updated to record the fsmonitor section after a 108 full scan was made, to avoid wasting the effort that has already 109 spent. 110 111 * Performance measuring framework in t/perf learned to help bisecting 112 performance regressions. 113 114 * Some multi-word source filenames are being renamed to separate 115 words with dashes instead of underscores. 116 117 * An reusable "memory pool" implementation has been extracted from 118 fast-import.c, which in turn has become the first user of the 119 mem-pool API. 120 121Also contains various documentation updates and code clean-ups. 122 123 124Fixes since v2.17 125----------------- 126 127 * "git shortlog cruft" aborted with a BUG message when run outside a 128 Git repository. The command has been taught to complain about 129 extra and unwanted arguments on its command line instead in such a 130 case. 131 (merge 4aa0161e83 ma/shortlog-revparse later to maint). 132 133 * "git stash push -u -- <pathspec>" gave an unnecessary and confusing 134 error message when there was no tracked files that match the 135 <pathspec>, which has been fixed. 136 (merge 353278687e tg/stash-untracked-with-pathspec-fix later to maint). 137 138 * "git tag --contains no-such-commit" gave a full list of options 139 after giving an error message. 140 (merge 3bb0923f06 ps/contains-id-error-message later to maint). 141 142 * "diff-highlight" filter (in contrib/) learned to undertand "git log 143 --graph" output better. 144 (merge 4551fbba14 jk/diff-highlight-graph-fix later to maint). 145 146 * when refs that do not point at committish are given, "git 147 filter-branch" gave a misleading error messages. This has been 148 corrected. 149 (merge f78ab355e7 yk/filter-branch-non-committish-refs later to maint). 150 151 * "git submodule status" misbehaved on a submodule that has been 152 removed from the working tree. 153 (merge 74b6bda32f rs/status-with-removed-submodule later to maint). 154 155 * When credential helper exits very quickly without reading its 156 input, it used to cause Git to die with SIGPIPE, which has been 157 fixed. 158 (merge a0d51e8d0e eb/cred-helper-ignore-sigpipe later to maint). 159 160 * "git rebase --keep-empty" still removed an empty commit if the 161 other side contained an empty commit (due to the "does an 162 equivalent patch exist already?" check), which has been corrected. 163 (merge 3d946165e1 pw/rebase-keep-empty-fixes later to maint). 164 165 * Some codepaths, including the refs API, get and keep relative 166 paths, that go out of sync when the process does chdir(2). The 167 chdir-notify API is introduced to let these codepaths adjust these 168 cached paths to the new current directory. 169 (merge fb9c2d2703 jk/relative-directory-fix later to maint). 170 171 * "cd sub/dir && git commit ../path" ought to record the changes to 172 the file "sub/path", but this regressed long time ago. 173 (merge 86238e07ef bw/commit-partial-from-subdirectory-fix later to maint). 174 175 * Recent introduction of "--log-destination" option to "git daemon" 176 did not work well when the daemon was run under "--inetd" mode. 177 (merge e67d906d73 lw/daemon-log-destination later to maint). 178 179 * Small fix to the autoconf build procedure. 180 (merge 249482daf0 es/fread-reads-dir-autoconf-fix later to maint). 181 182 * Fix an unexploitable (because the oversized contents are not under 183 attacker's control) buffer overflow. 184 (merge d8579accfa bp/fsmonitor-bufsize-fix later to maint). 185 186 * Other minor doc, test and build updates and code cleanups. 187 (merge 248f66ed8e nd/trace-with-env later to maint). 188 (merge 14ced5562c ys/bisect-object-id-missing-conversion-fix later to maint). 189 (merge 5988eb631a ab/doc-hash-brokenness later to maint). 190 (merge a4d4e32a70 pk/test-avoid-pipe-hiding-exit-status later to maint). 191 (merge 05e293c1ac jk/flockfile-stdio later to maint). 192 (merge e9184b0789 jk/t5561-missing-curl later to maint). 193 (merge b1801b85a3 nd/worktree-move later to maint). 194 (merge bbd374dd20 ak/bisect-doc-typofix later to maint). 195 (merge 4855f06fb3 mn/send-email-credential-doc later to maint). 196 (merge 8523b1e355 en/doc-typoes later to maint). 197 (merge 43b44ccfe7 js/t5404-path-fix later to maint). 198 (merge decf711fc1 ps/test-chmtime-get later to maint). 199 (merge 22d11a6e8e es/worktree-docs later to maint). 200 (merge 92a5dbbc22 tg/use-git-contacts later to maint).