Skip to content

Commit f5a9264

Browse files
author
Junio C Hamano
committed
Merge branch 'maint'
* maint: GIT 1.5.0.1 Documentation/i18n.txt: it is i18n.commitencoding not core.commitencoding Read the config in rev-list Conflicts: RelNotes
2 parents b758120 + 4bc94d2 commit f5a9264

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

Documentation/RelNotes-1.5.0.1.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,28 @@ Fixes since v1.5.0
1515
- Converted remaining mentions of update-index on Porcelain
1616
documents to git-add/git-rm.
1717

18+
- Some i18n.* configuration variables were incorrectly
19+
described as core.*; fixed.
20+
1821
* Bugfixes
1922

23+
- git-add and git-update-index on a filesystem on which
24+
executable bits are unreliable incorrectly reused st_mode
25+
bits even when the path changed between symlink and regular
26+
file.
27+
2028
- git-daemon marks the listening sockets with FD_CLOEXEC so
2129
that it won't be leaked into the children.
2230

2331
- segfault from git-blame when the mandatory pathname
2432
parameter was missing was fixed; usage() message is given
2533
instead.
2634

35+
- git-rev-list did not read $GIT_DIR/config file, which means
36+
that did not honor i18n.logoutputencoding correctly.
37+
2738
* Tweaks
2839

2940
- sliding mmap() inefficiently mmaped the same region of a
3041
packfile with an access pattern that used objects in the
3142
reverse order. This has been made more efficient.
32-
33-
--
34-
exec >/var/tmp/1
35-
O=v1.5.0-24-g460ca30
36-
echo O=`git describe maint`
37-
git shortlog --no-merges $O..maint

Documentation/i18n.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,31 @@ mind.
2525
an warning if the commit log message given to it does not look
2626
like a valid UTF-8 string, unless you explicitly say your
2727
project uses a legacy encoding. The way to say this is to
28-
have core.commitencoding in `.git/config` file, like this:
28+
have i18n.commitencoding in `.git/config` file, like this:
2929
+
3030
------------
31-
[core]
31+
[i18n]
3232
commitencoding = ISO-8859-1
3333
------------
3434
+
3535
Commit objects created with the above setting record the value
36-
of `core.commitencoding` in its `encoding` header. This is to
36+
of `i18n.commitencoding` in its `encoding` header. This is to
3737
help other people who look at them later. Lack of this header
3838
implies that the commit log message is encoded in UTF-8.
3939

4040
. `git-log`, `git-show` and friends looks at the `encoding`
4141
header of a commit object, and tries to re-code the log
4242
message into UTF-8 unless otherwise specified. You can
4343
specify the desired output encoding with
44-
`core.logoutputencoding` in `.git/config` file, like this:
44+
`i18n.logoutputencoding` in `.git/config` file, like this:
4545
+
4646
------------
47-
[core]
47+
[i18n]
4848
logoutputencoding = ISO-8859-1
4949
------------
5050
+
5151
If you do not have this configuration variable, the value of
52-
`core.commitencoding` is used instead.
52+
`i18n.commitencoding` is used instead.
5353

5454
Note that we deliberately chose not to re-code the commit log
5555
message when a commit is made to force UTF-8 at the commit

builtin-rev-list.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
226226
int i;
227227
int read_from_stdin = 0;
228228

229+
git_config(git_default_config);
229230
init_revisions(&revs, prefix);
230231
revs.abbrev = 0;
231232
revs.commit_format = CMIT_FMT_UNSPECIFIED;

0 commit comments

Comments
 (0)