update-index: add test for chmod flags
[git.git] / Documentation / RelNotes / 2.9.0.txt
blob9b8fdc50f6d1bd5c1820083591c4f822398c90c7
1 Git 2.9 Release Notes
2 =====================
4 Backward compatibility notes
5 ----------------------------
7 The end-user facing Porcelain level commands in the "git diff" and
8 "git log" family by default enable the rename detection; you can still
9 use "diff.renames" configuration variable to disable this.
11 Merging two branches that have no common ancestor with "git merge" is
12 by default forbidden now to prevent creating such an unusual merge by
13 mistake.
15 The output formats of "git log" that indents the commit log message by
16 4 spaces now expands HT in the log message by default.  You can use
17 the "--no-expand-tabs" option to disable this.
19 "git commit-tree" plumbing command required the user to always sign
20 its result when the user sets the commit.gpgsign configuration
21 variable, which was an ancient mistake, which this release corrects.
22 A script that drives commit-tree, if it relies on this mistake, now
23 needs to read commit.gpgsign and pass the -S option as necessary.
26 Updates since v2.8
27 ------------------
29 UI, Workflows & Features
31  * Comes with git-multimail 1.3.1 (in contrib/).
33  * The end-user facing commands like "git diff" and "git log"
34    now enable the rename detection by default.
36  * The credential.helper configuration variable is cumulative and
37    there is no good way to override it from the command line.  As
38    a special case, giving an empty string as its value now serves
39    as the signal to clear the values specified in various files.
41  * A new "interactive.diffFilter" configuration can be used to
42    customize the diff shown in "git add -i" sessions.
44  * "git p4" now allows P4 author names to be mapped to Git author
45    names.
47  * "git rebase -x" can be used without passing "-i" option.
49  * "git -c credential.<var>=<value> submodule" can now be used to
50    propagate configuration variables related to credential helper
51    down to the submodules.
53  * "git tag" can create an annotated tag without explicitly given an
54    "-a" (or "-s") option (i.e. when a tag message is given).  A new
55    configuration variable, tag.forceSignAnnotated, can be used to tell
56    the command to create signed tag in such a situation.
58  * "git merge" used to allow merging two branches that have no common
59    base by default, which led to a brand new history of an existing
60    project created and then get pulled by an unsuspecting maintainer,
61    which allowed an unnecessary parallel history merged into the
62    existing project.  The command has been taught not to allow this by
63    default, with an escape hatch "--allow-unrelated-histories" option
64    to be used in a rare event that merges histories of two projects
65    that started their lives independently.
67  * "git pull" has been taught to pass the "--allow-unrelated-histories"
68    option to underlying "git merge".
70  * "git apply -v" learned to report paths in the patch that were
71    skipped via --include/--exclude mechanism or being outside the
72    current working directory.
74  * Shell completion (in contrib/) updates.
76  * The commit object name reported when "rebase -i" stops has been
77    shortened.
79  * "git worktree add" can be given "--no-checkout" option to only
80    create an empty worktree without checking out the files.
82  * "git mergetools" learned to drive ExamDiff.
84  * "git pull --rebase" learned "--[no-]autostash" option, so that
85    the rebase.autostash configuration variable set to true can be
86    overridden from the command line.
88  * When "git log" shows the log message indented by 4-spaces, the
89    remainder of a line after a HT does not align in the way the author
90    originally intended.  The command now expands tabs by default to help
91    such a case, and allows the users to override it with a new option,
92    "--no-expand-tabs".
94  * "git send-email" now uses a more readable timestamps when
95    formulating a message ID.
97  * "git rerere" can encounter two or more files with the same conflict
98    signature that have to be resolved in different ways, but there was
99    no way to record these separate resolutions.
101  * "git p4" learned to record P4 jobs in Git commit that imports from
102    the history in Perforce.
104  * "git describe --contains" often made a hard-to-justify choice of
105    tag to name a given commit, because it tried to come up
106    with a name with smallest number of hops from a tag, causing an old
107    commit whose close descendant that is recently tagged were not
108    described with respect to an old tag but with a newer tag.  It did
109    not help that its computation of "hop" count was further tweaked to
110    penalize being on a side branch of a merge.  The logic has been
111    updated to favor using the tag with the oldest tagger date, which
112    is a lot easier to explain to the end users: "We describe a commit
113    in terms of the (chronologically) oldest tag that contains the
114    commit."
115    (merge 7550424 js/name-rev-use-oldest-ref later to maint).
117  * "git clone" learned the "--shallow-submodules" option.
119  * HTTP transport clients learned to throw extra HTTP headers at the
120    server, specified via http.extraHeader configuration variable.
122  * Patch output from "git diff" and friends has been tweaked to be
123    more readable by using a blank line as a strong hint that the
124    contents before and after it belong to logically separate units.
126  * A new configuration variable core.hooksPath allows customizing
127    where the hook directory is.
129  * An earlier addition of "sanitize_submodule_env" with 14111fc4 (git:
130    submodule honor -c credential.* from command line, 2016-02-29)
131    turned out to be a convoluted no-op; implement what it wanted to do
132    correctly, and stop filtering settings given via "git -c var=val".
134  * "git commit --dry-run" reported "No, no, you cannot commit." in one
135    case where "git commit" would have allowed you to commit, and this
136    improves it a little bit ("git commit --dry-run --short" still does
137    not give you the correct answer, for example).  This is a stop-gap
138    measure in that "commit --short --dry-run" still gives an incorrect
139    result.
141  * The experimental "multiple worktree" feature gains more safety to
142    forbid operations on a branch that is checked out or being actively
143    worked on elsewhere, by noticing that e.g. it is being rebased.
145  * "git format-patch" learned a new "--base" option to record what
146    (public, well-known) commit the original series was built on in
147    its output.
149  * "git commit" learned to pay attention to the "commit.verbose"
150    configuration variable and act as if the "--verbose" option
151    was given from the command line.
153  * Updated documentation gives hints to GMail users with two-factor
154    auth enabled that they need app-specific-password when using
155    "git send-email".
158 Performance, Internal Implementation, Development Support etc.
160  * The embedded args argv-array in the child process is used to build
161    the command line to run pack-objects instead of using a separate
162    array of strings.
164  * A test for tags has been restructured so that more parts of it can
165    easily be run on a platform without a working GnuPG.
167  * The startup_info data, which records if we are working inside a
168    repository (among other things), are now uniformly available to Git
169    subcommand implementations, and Git avoids attempting to touch
170    references when we are not in a repository.
172  * The command line argument parser for "receive-pack" has been
173    rewritten to use parse-options.
175  * A major part of "git submodule update" has been ported to C to take
176    advantage of the recently added framework to run download tasks in
177    parallel.  Other updates to "git submodule" that move pieces of
178    logic to C continues.
180  * Rename bunch of tests on "git clone" for better organization.
182  * The tests that involve running httpd leaked the system-wide
183    configuration in /etc/gitconfig to the tested environment.
185  * Build updates for MSVC.
187  * The repository set-up sequence has been streamlined (the biggest
188    change is that there is no longer git_config_early()), so that we
189    do not attempt to look into refs/* when we know we do not have a
190    Git repository.
192  * Code restructuring around the "refs" API to prepare for pluggable
193    refs backends.
195  * Sources to many test helper binaries and the generated helpers
196    have been moved to t/helper/ subdirectory to reduce clutter at the
197    top level of the tree.
199  * Unify internal logic between "git tag -v" and "git verify-tag"
200    commands by making one directly call into the other.
202  * "merge-recursive" strategy incorrectly checked if a path that is
203    involved in its internal merge exists in the working tree.
205  * The test scripts for "git p4" (but not "git p4" implementation
206    itself) has been updated so that they would work even on a system
207    where the installed version of Python is python 3.
209  * As nobody maintains our in-tree git.spec.in and distros use their
210    own spec file, we stopped pretending that we support "make rpm".
212  * Move from "unsigned char[20]" to "struct object_id" continues.
214  * The code for warning_errno/die_errno has been refactored and a new
215    error_errno() reporting helper is introduced.
216    (merge 1da045f nd/error-errno later to maint).
218  * Running tests with '-x' option to trace the individual command
219    executions is a useful way to debug test scripts, but some tests
220    that capture the standard error stream and check what the command
221    said can be broken with the trace output mixed in.  When running
222    our tests under "bash", however, we can redirect the trace output
223    to another file descriptor to keep the standard error of programs
224    being tested intact.
225    (merge d88785e jk/test-send-sh-x-trace-elsewhere later to maint).
227  * t0040 had too many unnecessary repetitions in its test data.  Teach
228    test-parse-options program so that a caller can tell what it
229    expects in its output, so that these repetitions can be cleaned up.
231  * Add perf test for "rebase -i".
233  * Common mistakes when writing gitlink: in our documentation are
234    found by "make check-docs".
236  * t9xxx series has been updated primarily for readability, while
237    fixing small bugs in it.  A few scripted Porcelain commands have
238    also been updated to fix possible bugs around their use of
239    "test -z" and "test -n".
241  * CI test was taught to run git-svn tests.
243  * "git cat-file --batch-all" has been sped up, by taking advantage
244    of the fact that it does not have to read a list of objects, in two
245    ways.
247  * test updates to make it more readable and maintainable.
248    (merge e6273f4 es/t1500-modernize later to maint).
251 Also contains various documentation updates and code clean-ups.
254 Fixes since v2.8
255 ----------------
257 Unless otherwise noted, all the fixes since v2.8 in the maintenance
258 track are contained in this release (see the maintenance releases'
259 notes for details).
261  * "git config --get-urlmatch", unlike other variants of the "git
262    config --get" family, did not signal error with its exit status
263    when there was no matching configuration.
265  * The "--local-env-vars" and "--resolve-git-dir" options of "git
266    rev-parse" failed to work outside a repository when the command's
267    option parsing was rewritten in 1.8.5 era.
269  * "git index-pack --keep[=<msg>] pack-$name.pack" simply did not work.
271  * Fetching of history by naming a commit object name directly didn't
272    work across remote-curl transport.
274  * A small memory leak in an error codepath has been plugged in xdiff
275    code.
277  * strbuf_getwholeline() did not NUL-terminate the buffer on certain
278    corner cases in its error codepath.
280  * "git mergetool" did not work well with conflicts that both sides
281    deleted.
283  * "git send-email" had trouble parsing alias file in mailrc format
284    when lines in it had trailing whitespaces on them.
286  * When "git merge --squash" stopped due to conflict, the concluding
287    "git commit" failed to read in the SQUASH_MSG that shows the log
288    messages from all the squashed commits.
290  * "git merge FETCH_HEAD" dereferenced NULL pointer when merging
291    nothing into an unborn history (which is arguably unusual usage,
292    which perhaps was the reason why nobody noticed it).
294  * When "git worktree" feature is in use, "git branch -d" allowed
295    deletion of a branch that is checked out in another worktree,
296    which was wrong.
298  * When "git worktree" feature is in use, "git branch -m" renamed a
299    branch that is checked out in another worktree without adjusting
300    the HEAD symbolic ref for the worktree.
302  * "git diff -M" used to work better when two originally identical
303    files A and B got renamed to X/A and X/B by pairing A to X/A and B
304    to X/B, but this was broken in the 2.0 timeframe.
306  * "git send-pack --all <there>" was broken when its command line
307    option parsing was written in the 2.6 timeframe.
309  * "git format-patch --help" showed `-s` and `--no-patch` as if these
310    are valid options to the command.  We already hide `--patch` option
311    from the documentation, because format-patch is about showing the
312    diff, and the documentation now hides these options as well.
314  * When running "git blame $path" with unnormalized data in the index
315    for the path, the data in the working tree was blamed, even though
316    "git add" would not have changed what is already in the index, due
317    to "safe crlf" that disables the line-end conversion.  It has been
318    corrected.
320  * A change back in version 2.7 to "git branch" broke display of a
321    symbolic ref in a non-standard place in the refs/ hierarchy (we
322    expect symbolic refs to appear in refs/remotes/*/HEAD to point at
323    the primary branch the remote has, and as .git/HEAD to point at the
324    branch we locally checked out).
326  * A partial rewrite of "git submodule" in the 2.7 timeframe changed
327    the way the gitdir: pointer in the submodules point at the real
328    repository location to use absolute paths by accident.  This has
329    been corrected.
331  * "git commit" misbehaved in a few minor ways when an empty message
332    is given via -m '', all of which has been corrected.
334  * Support for CRAM-MD5 authentication method in "git imap-send" did
335    not work well.
337  * Upcoming OpenSSL 1.1.0 will break compilation by updating a few API
338    elements we use in imap-send, which has been adjusted for the change.
340  * The socks5:// proxy support added back in 2.6.4 days was not aware
341    that socks5h:// proxies behave differently from socks5:// proxies.
343  * "git config" had a codepath that tried to pass a NULL to
344    printf("%s"), which nobody seems to have noticed.
346  * On Cygwin, object creation uses the "create a temporary and then
347    rename it to the final name" pattern, not "create a temporary,
348    hardlink it to the final name and then unlink the temporary"
349    pattern.
351    This is necessary to use Git on Windows shared directories, and is
352    already enabled for the MinGW and plain Windows builds.  It also
353    has been used in Cygwin packaged versions of Git for quite a while.
354    See http://thread.gmane.org/gmane.comp.version-control.git/291853
356  * "merge-octopus" strategy did not ensure that the index is clean
357    when merge begins.
359  * When "git merge" notices that the merge can be resolved purely at
360    the tree level (without having to merge blobs) and the resulting
361    tree happens to already exist in the object store, it forgot to
362    update the index, which left an inconsistent state that would
363    break later operations.
365  * "git submodule" reports the paths of submodules the command
366    recurses into, but these paths were incorrectly reported when
367    the command was not run from the root level of the superproject.
369  * The "user.useConfigOnly" configuration variable makes it an error
370    if users do not explicitly set user.name and user.email.  However,
371    its check was not done early enough and allowed another error to
372    trigger, reporting that the default value we guessed from the
373    system setting was unusable.  This was a suboptimal end-user
374    experience as we want the users to set user.name/user.email without
375    relying on the auto-detection at all.
377  * "git mv old new" did not adjust the path for a submodule that lives
378    as a subdirectory inside old/ directory correctly.
380  * "git replace -e" did not honour "core.editor" configuration.
382  * "git push" from a corrupt repository that attempts to push a large
383    number of refs deadlocked; the thread to relay rejection notices
384    for these ref updates blocked on writing them to the main thread,
385    after the main thread at the receiving end notices that the push
386    failed and decides not to read these notices and return a failure.
388  * mmap emulation on Windows has been optimized and work better without
389    consuming paging store when not needed.
391  * A question by "git send-email" to ask the identity of the sender
392    has been updated.
394  * UI consistency improvements for "git mergetool".
396  * "git rebase -m" could be asked to rebase an entire branch starting
397    from the root, but failed by assuming that there always is a parent
398    commit to the first commit on the branch.
400  * Fix a broken "p4 lfs" test.
402  * Recent update to Git LFS broke "git p4" by changing the output from
403    its "lfs pointer" subcommand.
405  * "git fetch" test t5510 was flaky while running a (forced) automagic
406    garbage collection.
408  * Documentation updates to help contributors setting up Travis CI
409    test for their patches.
411  * Some multi-byte encoding can have a backslash byte as a later part
412    of one letter, which would confuse "highlight" filter used in
413    gitweb.
415  * "git commit-tree" plumbing command required the user to always sign
416    its result when the user sets the commit.gpgsign configuration
417    variable, which was an ancient mistake.  Rework "git rebase" that
418    relied on this mistake so that it reads commit.gpgsign and pass (or
419    not pass) the -S option to "git commit-tree" to keep the end-user
420    expectation the same, while teaching "git commit-tree" to ignore
421    the configuration variable.  This will stop requiring the users to
422    sign commit objects used internally as an implementation detail of
423    "git stash".
425  * "http.cookieFile" configuration variable clearly wants a pathname,
426    but we forgot to treat it as such by e.g. applying tilde expansion.
427    (merge e5a39ad bn/http-cookiefile-config later to maint).
429  * Consolidate description of tilde-expansion that is done to
430    configuration variables that take pathname to a single place.
431    (merge dca83ab jc/config-pathname-type later to maint).
433  * Correct faulty recommendation to use "git submodule deinit ." when
434    de-initialising all submodules, which would result in a strange
435    error message in a pathological corner case.
436    (merge f6a5279 sb/submodule-deinit-all later to maint).
438  * Many 'linkgit:<git documentation page>' references were broken,
439    which are all fixed with this.
440    (merge 1cca17d jc/linkgit-fix later to maint).
442  * "git rerere" can get confused by conflict markers deliberately left
443    by the inner merge step, because they are indistinguishable from
444    the real conflict markers left by the outermost merge which are
445    what the end user and "rerere" need to look at.  This was fixed by
446    making the conflict markers left by the inner merges a bit longer.
447    (merge 0f9fd5c jc/ll-merge-internal later to maint).
449  * CI test was taught to build documentation pages.
450    (merge b98712b ls/travis-build-doc later to maint).
452  * "git fsck" learned to catch NUL byte in a commit object as
453    potential error and warn.
454    (merge 6d2d780 jc/fsck-nul-in-commit later to maint).
456  * Portability enhancement for "rebase -i" to help platforms whose
457    shell does not like "for i in <empty>" (which is not POSIX-kosher).
458    (merge 8e98b35 jk/rebase-interactive-eval-fix later to maint).
460  * On Windows, .git and optionally any files whose name starts with a
461    dot are now marked as hidden, with a core.hideDotFiles knob to
462    customize this behaviour.
463    (merge ebf31e7 js/windows-dotgit later to maint).
465  * Documentation for "git merge --verify-signatures" has been updated
466    to clarify that the signature of only the commit at the tip is
467    verified.  Also the phrasing used for signature and key validity is
468    adjusted to align with that used by OpenPGP.
469    (merge 05a5869 kf/gpg-sig-verification-doc later to maint).
471  * A couple of bugs around core.autocrlf have been fixed.
472    (merge caa47ad tb/core-eol-fix later to maint).
474  * Many commands normalize command line arguments from NFD to NFC
475    variant of UTF-8 on OSX, but commands in the "diff" family did
476    not, causing "git diff $path" to complain that no such path is
477    known to Git.  They have been taught to do the normalization.
478    (merge 90a78b8 ar/diff-args-osx-precompose later to maint).
480  * "git difftool" learned to handle unmerged paths correctly in
481    dir-diff mode.
482    (merge 366f9ce da/difftool later to maint).
484  * The "are we talking with TTY, doing an interactive session?"
485    detection has been updated to work better for "Git for Windows".
486    (merge f7f90e0 kb/msys2-tty later to maint).
488  * We forgot to add "git log --decorate=auto" to documentation when we
489    added the feature back in v2.1.0 timeframe.
490    (merge 462cbb4 rj/log-decorate-auto later to maint).
492  * "git fast-import --export-marks" would overwrite the existing marks
493    file even when it makes a dump from its custom die routine.
494    Prevent it from doing so when we have an import-marks file but
495    haven't finished reading it.
496    (merge f4beed6 fc/fast-import-broken-marks-file later to maint).
498  * Other minor clean-ups and documentation updates
499    (merge 832c0e5 lp/typofixes later to maint).
500    (merge f5ee54a sb/z-is-gnutar-ism later to maint).
501    (merge 2e3926b va/i18n-misc-updates later to maint).
502    (merge f212dcc bn/config-doc-tt-varnames later to maint).
503    (merge f54bea4 nd/remote-plural-ours-plus-theirs later to maint).
504    (merge 2bb0518 ak/t4151-ls-files-could-be-empty later to maint).
505    (merge 4df4313 jc/test-seq later to maint).
506    (merge a75a308 tb/t5601-sed-fix later to maint).
507    (merge 6c1fbe1 va/i18n-remote-comment-to-align later to maint).
508    (merge dee2303 va/mailinfo-doc-typofix later to maint).