]> git.ipfire.org Git - thirdparty/git.git/commitdiff
log: document --encoding behavior on iconv() failure
authorJeff King <peff@peff.net>
Fri, 29 Oct 2021 21:10:03 +0000 (17:10 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Oct 2021 21:35:59 +0000 (14:35 -0700)
We already note that we may produce invalid output when we skip calling
iconv() altogether. But we may also do so if iconv() fails, and we have
no good alternative. Let's document this to avoid surprising users.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-options.txt

index 54d8bb3db0bdd61be23413bb2d1f5589ab6caa20..dc685be363a674e754dc62f961558d97d5e65a7d 100644 (file)
@@ -40,7 +40,9 @@ people using 80-column terminals.
        defaults to UTF-8. Note that if an object claims to be encoded
        in `X` and we are outputting in `X`, we will output the object
        verbatim; this means that invalid sequences in the original
-       commit may be copied to the output.
+       commit may be copied to the output. Likewise, if iconv(3) fails
+       to convert the commit, we will quietly output the original
+       object verbatim.
 
 --expand-tabs=<n>::
 --expand-tabs::