diff options
author | Jeff King <peff@peff.net> | 2021-08-27 18:32:06 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-27 19:45:45 (GMT) |
commit | 1e93770888d3e71422f9f8defab216f1ebf977c3 (patch) | |
tree | fd0ec27964f6e8a61889d43fdb66a187f2d65d39 /Documentation | |
parent | fd680bc5586ab7c846e03e181e033dbc36cc7d5d (diff) | |
download | git-1e93770888d3e71422f9f8defab216f1ebf977c3.zip git-1e93770888d3e71422f9f8defab216f1ebf977c3.tar.gz git-1e93770888d3e71422f9f8defab216f1ebf977c3.tar.bz2 |
docs: use "character encoding" to refer to commit-object encoding
The word "encoding" can mean a lot of things (e.g., base64 or
quoted-printable encoding in emails, HTML entities, URL encoding, and so
on). The documentation for i18n.commitEncoding and i18n.logOutputEncoding
uses the phrase "character encoding" to make this more clear.
Let's use that phrase in other places to make it clear what kind of
encoding we are talking about. This patch covers the gui.encoding
option, as well as the --encoding option for git-log, etc (in this
latter case, I word-smithed the sentence a little at the same time).
That, coupled with the mention of iconv in the --encoding description,
should make this more clear.
The other spot I looked at is the working-tree-encoding section of
gitattributes(5). But it gives specific examples of encodings that I
think make the meaning pretty clear already.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/config/gui.txt | 2 | ||||
-rw-r--r-- | Documentation/pretty-options.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/config/gui.txt b/Documentation/config/gui.txt index d30831a..0c087fd 100644 --- a/Documentation/config/gui.txt +++ b/Documentation/config/gui.txt @@ -11,7 +11,7 @@ gui.displayUntracked:: in the file list. The default is "true". gui.encoding:: - Specifies the default encoding to use for displaying of + Specifies the default character encoding to use for displaying of file contents in linkgit:git-gui[1] and linkgit:gitk[1]. It can be overridden by setting the 'encoding' attribute for relevant files (see linkgit:gitattributes[5]). diff --git a/Documentation/pretty-options.txt b/Documentation/pretty-options.txt index 42b227b..b3af850 100644 --- a/Documentation/pretty-options.txt +++ b/Documentation/pretty-options.txt @@ -33,7 +33,7 @@ people using 80-column terminals. used together. --encoding=<encoding>:: - The commit objects record the encoding used for the log message + Commit objects record the character encoding used for the log message in their encoding header; this option can be used to tell the command to re-code the commit log message in the encoding preferred by the user. For non plumbing commands this |