1
1
Git v2.1 Release Notes
2
2
======================
3
3
4
+ Backward compatibility notes
5
+ ----------------------------
6
+
7
+ * The default value we give to the environment variable LESS has been
8
+ changed from "FRSX" to "FRX", losing "S" (chop long lines instead
9
+ of wrapping). Existing users who prefer not to see line-wrapped
10
+ output may want to set
11
+
12
+ $ git config core.pager "less -S"
13
+
14
+ to restore the traditional behaviour. It is expected that people
15
+ find output from the most subcommands easier to read with the new
16
+ default, except for "blame" which tends to produce really long
17
+ lines. To override the new default only for "git blame", you can
18
+ do this:
19
+
20
+ $ git config pager.blame "less -S"
21
+
22
+ * A few disused directories in contrib/ have been retired.
23
+
24
+
4
25
Updates since v2.0
5
26
------------------
6
27
7
28
UI, Workflows & Features
8
29
30
+ * Since the very beginning of Git, we gave the LESS environment a
31
+ default value "FRSX" when we spawn "less" as the pager. "S" (chop
32
+ long lines instead of wrapping) has been removed from this default
33
+ set of options, because it is more or less a personal taste thing,
34
+ as opposed to others that have good justifications (i.e. "R" is
35
+ very much justified because many kinds of output we produce are
36
+ colored and "FX" is justified because output we produce is often
37
+ shorter than a page).
38
+
39
+ * The logic and data used to compute the display width needed for
40
+ UTF-8 strings have been updated to match Unicode 6.3 better.
41
+
9
42
* "git commit --date=<date>" option learned to read from more
10
43
timestamp formats, including "--date=now".
11
44
45
+ * The `core.commentChar` configuration variable is used to specify a
46
+ custom comment character other than the default "#" to be used in
47
+ the commit log editor. This can be set to `auto` to attempt to
48
+ choose a different character that does not conflict with what
49
+ already starts a line in the message being edited for cases like
50
+ "git commit --amend".
51
+
12
52
* "git grep" learned grep.fullname configuration variable to force
13
53
"--full-name" to be default. This may cause regressions on
14
54
scripted users that do not expect this new behaviour.
15
55
56
+ * "git imap-send" learned to ask the credential helper for auth
57
+ material.
58
+
16
59
* "git merge" without argument, even when there is an upstream
17
60
defined for the current branch, refused to run until
18
61
merge.defaultToUpstream is set to true. Flip the default of that
@@ -37,9 +80,21 @@ UI, Workflows & Features
37
80
digit in the hour part, e.g. 2014-01-07T5:01:02.048176Z, emitted
38
81
by some broken subversion server implementations.
39
82
83
+ * "git tag" when editing the tag message shows the name of the tag
84
+ being edited as a comment in the editor.
85
+
40
86
41
87
Performance, Internal Implementation, etc.
42
88
89
+ * Build procedure for 'subtree' (in contrib/) has been cleaned up.
90
+
91
+ * The `core.deltabasecachelimit` used to default to 16 MiB , but this
92
+ proved to be too small, and has been bumped to 96 MiB.
93
+
94
+ * "git blame" has been optimized greatly by reorganising the data
95
+ structure that is used to keep track of the work to be done, thanks
96
+ to David Karstrup <
[email protected] >.
97
+
43
98
* "git diff" that compares 3-or-more trees (e.g. parents and the
44
99
result of a merge) have been optimized.
45
100
@@ -59,6 +114,11 @@ Unless otherwise noted, all the fixes since v2.0 in the maintenance
59
114
track are contained in this release (see the maintenance releases'
60
115
notes for details).
61
116
117
+ * We used to unconditionally disable the pager in the pager process
118
+ we spawn to feed out output, but that prevented people who want to
119
+ run "less" within "less" from doing so.
120
+ (merge c0459ca je/pager-do-not-recurse later to maint).
121
+
62
122
* "--ignore-space-change" option of "git apply" ignored the spaces
63
123
at the beginning of line too aggressively, which is inconsistent
64
124
with the option of the same name "diff" and "git diff" have.
@@ -69,15 +129,42 @@ notes for details).
69
129
lines in its output.
70
130
(merge dd75553 jx/blame-align-relative-time later to maint).
71
131
132
+ * "git blame" assigned the blame to the copy in the working-tree if
133
+ the repository is set to core.autocrlf=input and the file used CRLF
134
+ line endings.
135
+ (merge 4d4813a bc/blame-crlf-test later to maint).
136
+
137
+ * "git commit --allow-empty-messag -C $commit" did not work when the
138
+ commit did not have any log message.
139
+ (merge 076cbd6 jk/commit-C-pick-empty later to maint).
140
+
141
+ * "git grep -O" to show the lines that hit in the pager did not work
142
+ well with case insensitive search. We now spawn "less" with its
143
+ "-I" option when it is used as the pager (which is the default).
144
+ (merge f7febbe sk/spawn-less-case-insensitively-from-grep-O-i later to maint).
145
+
72
146
* We used to disable threaded "git index-pack" on platforms without
73
147
thread-safe pread(); use a different workaround for such
74
148
platforms to allow threaded "git index-pack".
75
149
(merge 3953949 nd/index-pack-one-fd-per-thread later to maint).
76
150
151
+ * The error reporting from "git index-pack" has been improved to
152
+ distinguish missing objects from type errors.
153
+ (merge 77583e7 jk/index-pack-report-missing later to maint).
154
+
155
+ * On a case insensitive filesystem, merge-recursive incorrectly
156
+ deleted the file that is to be renamed to a name that is the same
157
+ except for case differences.
158
+ (merge baa37bf dt/merge-recursive-case-insensitive later to maint).
159
+
77
160
* "git rerere forget" did not work well when merge.conflictstyle
78
161
was set to a non-default value.
79
162
(merge de3d8bb fc/rerere-conflict-style later to maint).
80
163
164
+ * "git show -s" (i.e. show log message only) used to incorrectly emit
165
+ an extra blank line after a merge commit.
166
+ (merge ad2f725 mk/show-s-no-extra-blank-line-for-merges later to maint).
167
+
81
168
* "git status", even though it is a read-only operation, tries to
82
169
update the index with refreshed lstat(2) info to optimize future
83
170
accesses to the working tree opportunistically, but this could
0 commit comments