Merge branch 'dp/makefile-charset-lib-doc'
[git.git] / Documentation / RelNotes / 2.0.0.txt
blob98ec2103cd3c3d461bf641a3ff57c384d75d4fbb
1 Git v2.0 Release Notes
2 ======================
4 Backward compatibility notes
5 ----------------------------
7 When "git push [$there]" does not say what to push, we have used the
8 traditional "matching" semantics so far (all your branches were sent
9 to the remote as long as there already are branches of the same name
10 over there).  In Git 2.0, the default is now the "simple" semantics,
11 which pushes:
13  - only the current branch to the branch with the same name, and only
14    when the current branch is set to integrate with that remote
15    branch, if you are pushing to the same remote as you fetch from; or
17  - only the current branch to the branch with the same name, if you
18    are pushing to a remote that is not where you usually fetch from.
20 You can use the configuration variable "push.default" to change
21 this.  If you are an old-timer who wants to keep using the
22 "matching" semantics, you can set the variable to "matching", for
23 example.  Read the documentation for other possibilities.
25 When "git add -u" and "git add -A" are run inside a subdirectory
26 without specifying which paths to add on the command line, they
27 operate on the entire tree for consistency with "git commit -a" and
28 other commands (these commands used to operate only on the current
29 subdirectory).  Say "git add -u ." or "git add -A ." if you want to
30 limit the operation to the current directory.
32 "git add <path>" is the same as "git add -A <path>" now, so that
33 "git add dir/" will notice paths you removed from the directory and
34 record the removal.  In older versions of Git, "git add <path>" used
35 to ignore removals.  You can say "git add --ignore-removal <path>" to
36 add only added or modified paths in <path>, if you really want to.
38 The "-q" option to "git diff-files", which does *NOT* mean "quiet",
39 has been removed (it told Git to ignore deletion, which you can do
40 with "git diff-files --diff-filter=d").
42 "git request-pull" lost a few "heuristics" that often led to mistakes.
45 Updates since v1.9 series
46 -------------------------
48 UI, Workflows & Features
50  * "git rebase" learned to interpret a lone "-" as "@{-1}", the
51    branch that we were previously on.
53  * "git commit --cleanup=<mode>" learned a new mode, scissors.
55  * "git tag --list" output can be sorted using "version sort" with
56    "--sort=version:refname".
58  * Discard the accumulated "heuristics" to guess from which branch the
59    result wants to be pulled from and make sure what the end user
60    specified is not second-guessed by "git request-pull", to avoid
61    mistakes.  When you pushed out your 'master' branch to your public
62    repository as 'for-linus', use the new "master:for-linus" syntax to
63    denote the branch to be pulled.
65  * "git grep" learned to behave in a way similar to native grep when
66    "-h" (no header) and "-c" (count) options are given.
68  * transport-helper, fast-import and fast-export have been updated to
69    allow the ref mapping and ref deletion in a way similar to the
70    natively supported transports.
72  * The "simple" mode is the default for "git push".
74  * "git add -u" and "git add -A", when run without any pathspec, is a
75    tree-wide operation even when run inside a subdirectory of a
76    working tree.
78  * "git add <path> is the same as "git add -A <path>" now.
80  * "core.statinfo" configuration variable, which is a
81    never-advertised synonym to "core.checkstat", has been removed.
83  * The "-q" option to "git diff-files", which does *NOT* mean
84    "quiet", has been removed (it told Git to ignore deletion, which
85    you can do with "git diff-files --diff-filter=d").
87  * Server operators can loosen the "tips of refs only" restriction for
88    the remote archive service with the uploadarchive.allowUnreachable
89    configuration option.
91  * The progress indicators from various time-consuming commands have
92    been marked for i18n/l10n.
94  * "git notes -C <blob>" diagnoses an attempt to use an object that
95    is not a blob as an error.
97  * "git config" learned to read from the standard input when "-" is
98    given as the value to its "--file" parameter (attempting an
99    operation to update the configuration in the standard input of
100    course is rejected).
102  * Trailing whitespaces in .gitignore files, unless they are quoted
103    for fnmatch(3), e.g. "path\ ", are warned and ignored.  Strictly
104    speaking, this is a backward incompatible change, but very unlikely
105    to bite any sane user and adjusting should be obvious and easy.
107  * Many commands that create commits, e.g. "pull", "rebase",
108    learned to take the --gpg-sign option on the command line.
110  * "git commit" can be told to always GPG sign the resulting commit
111    by setting "commit.gpgsign" configuration variable to true (the
112    command line option --no-gpg-sign should override it).
114  * "git pull" can be told to only accept fast-forward by setting the
115    new "pull.ff" configuration.
117  * "git reset" learned "-N" option, which does not reset the index
118    fully for paths the index knows about but the tree-ish the command
119    resets to does not (these paths are kept as intend-to-add entries).
121  * Newly cloned submodule repositories by "git submodule update",
122    when the "checkout" update mode is used, will be on a local
123    branch instead of on a detached HEAD, just like submodules added
124    with "git submodule add".
127 Performance, Internal Implementation, etc.
129  * We started using wildmatch() in place of fnmatch(3) a few releases
130    ago; complete the process and stop using fnmatch(3).
132  * Uses of curl's "multi" interface and "easy" interface do not mix
133    well when we attempt to reuse outgoing connections.  Teach the RPC
134    over http code, used in the smart HTTP transport, not to use the
135    "easy" interface.
137  * The bitmap-index feature from JGit has been ported, which should
138    significantly improve performance when serving objects form a
139    repository that uses it.
141  * The way "git log --cc" shows a combined diff against multiple
142    parents have been optimized.
144  * The prefixcmp() and suffixcmp() functions are gone.  Use
145    starts_with() and ends_with(), and also consider if skip_prefix()
146    suits your needs better when using the former.
149 Also contains various documentation updates and code clean-ups.  Many
150 of them came from flurry of activities as GSoC candidate microproject
151 exercises.
154 Fixes since v1.9 series
155 -----------------------
157 Unless otherwise noted, all the fixes since v1.9 in the maintenance
158 track are contained in this release (see the maintenance releases'
159 notes for details).
161  * "git repack" died when asked to (re)pack with the reachability
162    bitmap when a bitmap cannot be built; instead, just (re)pack
163    without producing a bitmap in such a case, with a warning.
164    (merge 373c67d jk/pack-bitmap later to maint).
167  * The progress output while repacking and transferring objects showed
168    an apparent large silence while writing the objects out of existing
169    packfiles, when the reachability bitmap was in use.
170    (merge 78d2214 jk/pack-bitmap-progress later to maint).
173  * A stray environment variable $prefix could have leaked into and
174    affected the behaviour of the "subtree" script (in contrib/).
177  * When it is not necessary to edit a commit log message (e.g. "git
178    commit -m" is given a message without specifying "-e"), we used to
179    disable the spawning of the editor by overriding GIT_EDITOR, but
180    this means all the uses of the editor, other than to edit the
181    commit log message, are also affected.
182    (merge b549be0 bp/commit-p-editor later to maint).
185  * "git mv" that moves a submodule forgot to adjust the array that
186    uses to keep track of which submodules were to be moved to update
187    its configuration.
188    (merge fb8a4e8 jk/mv-submodules-fix later to maint).
190  * Length limit for the pathname used when removing a path in a deep
191    subdirectory has been removed to avoid buffer overflows.
192    (merge 2f29e0c mh/remove-subtree-long-pathname-fix later to maint).
194  * The test helper lib-terminal always run an actual test_expect_*
195    when included, which screwed up with the use of skil-all that may
196    have to be done later.
197    (merge 7e27173 jk/lib-terminal-lazy later to maint).
199  * "git index-pack" used a wrong variable to name the keep-file in an
200    error message when the file cannot be written or closed.
201    (merge de983a0 nd/index-pack-error-message later to maint).
203  * "rebase -i" produced a broken insn sheet when the title of a commit
204    happened to contain '\n' (or ended with '\c') due to a careless use
205    of 'echo'.
206    (merge cb1aefd us/printf-not-echo later to maint).
208  * There were a few instances of 'git-foo' remaining in the
209    documentation that should have been spelled 'git foo'.
210    (merge 3c3e6f5 rr/doc-merge-strategies later to maint).
212  * Serving objects from a shallow repository needs to write a
213    new file to hold the temporary shallow boundaries but it was not
214    cleaned when we exit due to die() or a signal.
215    (merge 7839632 jk/shallow-update-fix later to maint).
217  * When "git stash pop" stops after failing to apply the stash
218    (e.g. due to conflicting changes), the stash is not dropped. State
219    that explicitly in the output to let the users know.
220    (merge 2d4c993 jc/stash-pop-not-popped later to maint).
222  * The labels in "git status" output that describe the nature of
223    conflicts (e.g. "both deleted") were limited to 20 bytes, which was
224    too short for some l10n (e.g. fr).
225    (merge c7cb333 jn/wt-status later to maint).
227  * "git clean -d pathspec" did not use the given pathspec correctly
228    and ended up cleaning too much.
229    (merge 1f2e108 jk/clean-d-pathspec later to maint).
231  * "git difftool" misbehaved when the repository is bound to the
232    working tree with the ".git file" mechanism, where a textual file
233    ".git" tells us where it is.
234    (merge fcfec8b da/difftool-git-files later to maint).
236  * "git push" did not pay attention to branch.*.pushremote if it is
237    defined earlier than remote.pushdefault; the order of these two
238    variables in the configuration file should not matter, but it did
239    by mistake.
240    (merge 98b406f jk/remote-pushremote-config-reading later to maint).
242  * Codepaths that parse timestamps in commit objects have been
243    tightened.
244    (merge 3f419d4 jk/commit-dates-parsing-fix later to maint).
246  * "git diff --external-diff" incorrectly fed the submodule directory
247    in the working tree to the external diff driver when it knew it is
248    the same as one of the versions being compared.
249    (merge aba4727 tr/diff-submodule-no-reuse-worktree later to maint).
251  * "git reset" needs to refresh the index when working in a working
252    tree (it can also be used to match the index to the HEAD in an
253    otherwise bare repository), but it failed to set up the working
254    tree properly, causing GIT_WORK_TREE to be ignored.
255    (merge b7756d4 nd/reset-setup-worktree later to maint).
257  * "git check-attr" when working on a repository with a working tree
258    did not work well when the working tree was specified via the
259    --work-tree (and obviously with --git-dir) option.
260    (merge cdbf623 jc/check-attr-honor-working-tree later to maint).
262  * "merge-recursive" was broken in 1.7.7 era and stopped working in
263    an empty (temporary) working tree, when there are renames
264    involved.  This has been corrected.
265    (merge 6e2068a bk/refresh-missing-ok-in-merge-recursive later to maint.)
267  * "git rev-parse" was loose in rejecting command line arguments
268    that do not make sense, e.g. "--default" without the required
269    value for that option.
270    (merge a43219f ds/rev-parse-required-args later to maint.)
272  * include.path variable (or any variable that expects a path that
273    can use ~username expansion) in the configuration file is not a
274    boolean, but the code failed to check it.
275    (merge 67beb60 jk/config-path-include-fix later to maint.)
277  * Commands that take pathspecs on the command line misbehaved when
278    the pathspec is given as an absolute pathname (which is a
279    practice not particularly encouraged) that points at a symbolic
280    link in the working tree.
281    (merge later 655ee9e mw/symlinks to maint.)
283  * "git diff --quiet -- pathspec1 pathspec2" sometimes did not return
284    correct status value.
285    (merge f34b205 nd/diff-quiet-stat-dirty later to maint.)
287  * Attempting to deepen a shallow repository by fetching over smart
288    HTTP transport failed in the protocol exchange, when no-done
289    extension was used.  The fetching side waited for the list of
290    shallow boundary commits after the sending end stopped talking to
291    it.
292    (merge 0232852 nd/http-fetch-shallow-fix later to maint.)
294  * Allow "git cmd path/", when the 'path' is where a submodule is
295    bound to the top-level working tree, to match 'path', despite the
296    extra and unnecessary trailing slash (such a slash is often
297    given by command line completion).
298    (merge 2e70c01 nd/submodule-pathspec-ending-with-slash later to maint.)