]> git.ipfire.org Git - thirdparty/git.git/blob - Documentation/RelNotes/2.0.0.txt
Update draft release notes for 2.0
[thirdparty/git.git] / Documentation / RelNotes / 2.0.0.txt
1 Git v2.0 Release Notes
2 ======================
3
4 Backward compatibility notes
5 ----------------------------
6
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:
12
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
16
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.
19
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.
24
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.
31
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.
37
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").
41
42 "git request-pull" lost a few "heuristics" that often led to mistakes.
43
44
45 Updates since v1.9 series
46 -------------------------
47
48 UI, Workflows & Features
49
50 * The "multi-mail" post-receive hook (in contrib/) has been updated
51 to a more recent version from the upstream.
52
53 * "git gc --aggressive" learned "--depth" option and
54 "gc.aggressiveDepth" configuration variable to allow use of a less
55 insane depth than the built-in default value of 250.
56
57 * "git log" learned the "--show-linear-break" option to show where a
58 single strand-of-pearls is broken in its output.
59
60 * The "rev-parse --parseopt" mechanism used by scripted Porcelains to
61 parse command line options and to give help text learned to take
62 the argv-help (the placeholder string for an option parameter,
63 e.g. "key-id" in "--gpg-sign=<key-id>").
64
65 * The pattern to find where the function begins in C/C++ used in
66 "diff" and "grep -p" have been updated to help C++ source better.
67
68 * "git rebase" learned to interpret a lone "-" as "@{-1}", the
69 branch that we were previously on.
70
71 * "git commit --cleanup=<mode>" learned a new mode, scissors.
72
73 * "git tag --list" output can be sorted using "version sort" with
74 "--sort=version:refname".
75
76 * Discard the accumulated "heuristics" to guess from which branch the
77 result wants to be pulled from and make sure what the end user
78 specified is not second-guessed by "git request-pull", to avoid
79 mistakes. When you pushed out your 'master' branch to your public
80 repository as 'for-linus', use the new "master:for-linus" syntax to
81 denote the branch to be pulled.
82
83 * "git grep" learned to behave in a way similar to native grep when
84 "-h" (no header) and "-c" (count) options are given.
85
86 * transport-helper, fast-import and fast-export have been updated to
87 allow the ref mapping and ref deletion in a way similar to the
88 natively supported transports.
89
90 * The "simple" mode is the default for "git push".
91
92 * "git add -u" and "git add -A", when run without any pathspec, is a
93 tree-wide operation even when run inside a subdirectory of a
94 working tree.
95
96 * "git add <path> is the same as "git add -A <path>" now.
97
98 * "core.statinfo" configuration variable, which is a
99 never-advertised synonym to "core.checkstat", has been removed.
100
101 * The "-q" option to "git diff-files", which does *NOT* mean
102 "quiet", has been removed (it told Git to ignore deletion, which
103 you can do with "git diff-files --diff-filter=d").
104
105 * Server operators can loosen the "tips of refs only" restriction for
106 the remote archive service with the uploadarchive.allowUnreachable
107 configuration option.
108
109 * The progress indicators from various time-consuming commands have
110 been marked for i18n/l10n.
111
112 * "git notes -C <blob>" diagnoses an attempt to use an object that
113 is not a blob as an error.
114
115 * "git config" learned to read from the standard input when "-" is
116 given as the value to its "--file" parameter (attempting an
117 operation to update the configuration in the standard input of
118 course is rejected).
119
120 * Trailing whitespaces in .gitignore files, unless they are quoted
121 for fnmatch(3), e.g. "path\ ", are warned and ignored. Strictly
122 speaking, this is a backward incompatible change, but very unlikely
123 to bite any sane user and adjusting should be obvious and easy.
124
125 * Many commands that create commits, e.g. "pull", "rebase",
126 learned to take the --gpg-sign option on the command line.
127
128 * "git commit" can be told to always GPG sign the resulting commit
129 by setting "commit.gpgsign" configuration variable to true (the
130 command line option --no-gpg-sign should override it).
131
132 * "git pull" can be told to only accept fast-forward by setting the
133 new "pull.ff" configuration.
134
135 * "git reset" learned "-N" option, which does not reset the index
136 fully for paths the index knows about but the tree-ish the command
137 resets to does not (these paths are kept as intend-to-add entries).
138
139
140 Performance, Internal Implementation, etc.
141
142 * The compilation options to port to AIX and to MSVC have been
143 updated.
144
145 * We started using wildmatch() in place of fnmatch(3) a few releases
146 ago; complete the process and stop using fnmatch(3).
147
148 * Uses of curl's "multi" interface and "easy" interface do not mix
149 well when we attempt to reuse outgoing connections. Teach the RPC
150 over http code, used in the smart HTTP transport, not to use the
151 "easy" interface.
152
153 * The bitmap-index feature from JGit has been ported, which should
154 significantly improve performance when serving objects form a
155 repository that uses it.
156
157 * The way "git log --cc" shows a combined diff against multiple
158 parents have been optimized.
159
160 * The prefixcmp() and suffixcmp() functions are gone. Use
161 starts_with() and ends_with(), and also consider if skip_prefix()
162 suits your needs better when using the former.
163
164
165 Also contains various documentation updates and code clean-ups. Many
166 of them came from flurry of activities as GSoC candidate microproject
167 exercises.
168
169
170 Fixes since v1.9 series
171 -----------------------
172
173 Unless otherwise noted, all the fixes since v1.9 in the maintenance
174 track are contained in this release (see the maintenance releases'
175 notes for details).
176
177 * Some more Unicode codepoints defined in Unicode 6.3 as having zero
178 width have been taught to our display column counting logic.
179 (merge d813ab9 tb/unicode-6.3-zero-width later to maint).
180
181 * Some tests used shell constructs that did not work well on FreeBSD
182 (merge ff7a1c6 km/avoid-bs-in-shell-glob later to maint).
183 (merge 00764ca km/avoid-cp-a later to maint).
184
185 * "git update-ref --stdin" did not fail a request to create a ref
186 when the ref already existed.
187 (merge b9d56b5 mh/update-ref-batch-create-fix later to maint).
188
189 * "git diff --no-index -Mq a b" fell into an infinite loop.
190 (merge ad1c3fb jc/fix-diff-no-index-diff-opt-parse later to maint).
191
192 * "git fetch --prune", when the right-hand-side of multiple fetch
193 refspecs overlap (e.g. storing "refs/heads/*" to
194 "refs/remotes/origin/*", while storing "refs/frotz/*" to
195 "refs/remotes/origin/fr/*"), aggressively thought that lack of
196 "refs/heads/fr/otz" on the origin site meant we should remove
197 "refs/remotes/origin/fr/otz" from us, without checking their
198 "refs/frotz/otz" first.
199
200 Note that such a configuration is inherently unsafe (think what
201 should happen when "refs/heads/fr/otz" does appear on the origin
202 site), but that is not a reason not to be extra careful.
203 (merge e6f6371 cn/fetch-prune-overlapping-destination later to maint).
204
205 * "git status --porcelain --branch" showed its output with labels
206 "ahead/behind/gone" translated to the user's locale.
207 (merge 7a76c28 mm/status-porcelain-format-i18n-fix later to maint).
208
209 * A stray environment variable $prefix could have leaked into and
210 affected the behaviour of the "subtree" script (in contrib/).
211
212 * When it is not necessary to edit a commit log message (e.g. "git
213 commit -m" is given a message without specifying "-e"), we used to
214 disable the spawning of the editor by overriding GIT_EDITOR, but
215 this means all the uses of the editor, other than to edit the
216 commit log message, are also affected.
217 (merge b549be0 bp/commit-p-editor later to maint).
218
219 * "git mv" that moves a submodule forgot to adjust the array that
220 uses to keep track of which submodules were to be moved to update
221 its configuration.
222 (merge fb8a4e8 jk/mv-submodules-fix later to maint).
223
224 * Length limit for the pathname used when removing a path in a deep
225 subdirectory has been removed to avoid buffer overflows.
226 (merge 2f29e0c mh/remove-subtree-long-pathname-fix later to maint).
227
228 * The test helper lib-terminal always run an actual test_expect_*
229 when included, which screwed up with the use of skil-all that may
230 have to be done later.
231 (merge 7e27173 jk/lib-terminal-lazy later to maint).
232
233 * "git index-pack" used a wrong variable to name the keep-file in an
234 error message when the file cannot be written or closed.
235 (merge de983a0 nd/index-pack-error-message later to maint).
236
237 * "rebase -i" produced a broken insn sheet when the title of a commit
238 happened to contain '\n' (or ended with '\c') due to a careless use
239 of 'echo'.
240 (merge cb1aefd us/printf-not-echo later to maint).
241
242 * There were a few instances of 'git-foo' remaining in the
243 documentation that should have been spelled 'git foo'.
244 (merge 3c3e6f5 rr/doc-merge-strategies later to maint).
245
246 * Serving objects from a shallow repository needs to write a
247 new file to hold the temporary shallow boundaries but it was not
248 cleaned when we exit due to die() or a signal.
249 (merge 7839632 jk/shallow-update-fix later to maint).
250
251 * When "git stash pop" stops after failing to apply the stash
252 (e.g. due to conflicting changes), the stash is not dropped. State
253 that explicitly in the output to let the users know.
254 (merge 2d4c993 jc/stash-pop-not-popped later to maint).
255
256 * The labels in "git status" output that describe the nature of
257 conflicts (e.g. "both deleted") were limited to 20 bytes, which was
258 too short for some l10n (e.g. fr).
259 (merge c7cb333 jn/wt-status later to maint).
260
261 * "git clean -d pathspec" did not use the given pathspec correctly
262 and ended up cleaning too much.
263 (merge 1f2e108 jk/clean-d-pathspec later to maint).
264
265 * "git difftool" misbehaved when the repository is bound to the
266 working tree with the ".git file" mechanism, where a textual file
267 ".git" tells us where it is.
268 (merge fcfec8b da/difftool-git-files later to maint).
269
270 * "git push" did not pay attention to branch.*.pushremote if it is
271 defined earlier than remote.pushdefault; the order of these two
272 variables in the configuration file should not matter, but it did
273 by mistake.
274 (merge 98b406f jk/remote-pushremote-config-reading later to maint).
275
276 * Codepaths that parse timestamps in commit objects have been
277 tightened.
278 (merge f80d1f9 jk/commit-dates-parsing-fix later to maint).
279
280 * "git diff --external-diff" incorrectly fed the submodule directory
281 in the working tree to the external diff driver when it knew it is
282 the same as one of the versions being compared.
283 (merge aba4727 tr/diff-submodule-no-reuse-worktree later to maint).
284
285 * "git reset" needs to refresh the index when working in a working
286 tree (it can also be used to match the index to the HEAD in an
287 otherwise bare repository), but it failed to set up the working
288 tree properly, causing GIT_WORK_TREE to be ignored.
289 (merge b7756d4 nd/reset-setup-worktree later to maint).
290
291 * "git check-attr" when working on a repository with a working tree
292 did not work well when the working tree was specified via the
293 --work-tree (and obviously with --git-dir) option.
294 (merge cdbf623 jc/check-attr-honor-working-tree later to maint).
295
296 * "merge-recursive" was broken in 1.7.7 era and stopped working in
297 an empty (temporary) working tree, when there are renames
298 involved. This has been corrected.
299 (merge 6e2068a bk/refresh-missing-ok-in-merge-recursive later to maint.)
300
301 * "git rev-parse" was loose in rejecting command line arguments
302 that do not make sense, e.g. "--default" without the required
303 value for that option.
304 (merge a43219f ds/rev-parse-required-args later to maint.)
305
306 * include.path variable (or any variable that expects a path that
307 can use ~username expansion) in the configuration file is not a
308 boolean, but the code failed to check it.
309 (merge 67beb60 jk/config-path-include-fix later to maint.)
310
311 * Commands that take pathspecs on the command line misbehaved when
312 the pathspec is given as an absolute pathname (which is a
313 practice not particularly encouraged) that points at a symbolic
314 link in the working tree.
315 (merge later 655ee9e mw/symlinks to maint.)
316
317 * "git diff --quiet -- pathspec1 pathspec2" sometimes did not return
318 correct status value.
319 (merge f34b205 nd/diff-quiet-stat-dirty later to maint.)
320
321 * Attempting to deepen a shallow repository by fetching over smart
322 HTTP transport failed in the protocol exchange, when no-done
323 extension was used. The fetching side waited for the list of
324 shallow boundary commits after the sending end stopped talking to
325 it.
326 (merge 0232852 nd/http-fetch-shallow-fix later to maint.)
327
328 * Allow "git cmd path/", when the 'path' is where a submodule is
329 bound to the top-level working tree, to match 'path', despite the
330 extra and unnecessary trailing slash (such a slash is often
331 given by command line completion).
332 (merge 2e70c01 nd/submodule-pathspec-ending-with-slash later to maint.)
333
334 * Documentation and in-code comments had many instances of mistaken
335 use of "nor", which have been corrected.
336 (merge 235e8d5 jl/nor-or-nand-and later to maint).