]> git.ipfire.org Git - thirdparty/git.git/commitdiff
log doc: the argument to --encoding is not optional
authorJonathan Nieder <jrnieder@gmail.com>
Fri, 2 Aug 2013 22:16:40 +0000 (15:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Aug 2013 15:19:47 +0000 (08:19 -0700)
 $ git log --encoding
 fatal: Option '--encoding' requires a value
 $ git rev-list --encoding
 fatal: Option '--encoding' requires a value

The argument to --encoding has always been mandatory.  Unfortunately
manpages like git-rev-list(1), git-log(1), and git-show(1) have
described the option's syntax as "--encoding[=<encoding>]" since it
was first documented.  Clarify by removing the extra brackets.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-list.txt
Documentation/pretty-options.txt

index 65ac27e0c9f1f7c8a0313314574831a546bb3862..045b37b82e7544ddb753cdec7ead2bc8d97ad1c8 100644 (file)
@@ -40,7 +40,7 @@ SYNOPSIS
             [ \--right-only ]
             [ \--cherry-mark ]
             [ \--cherry-pick ]
-            [ \--encoding[=<encoding>] ]
+            [ \--encoding=<encoding> ]
             [ \--(author|committer|grep)=<pattern> ]
             [ \--regexp-ignore-case | -i ]
             [ \--extended-regexp | -E ]
index 5e499421a43526e133c7bd3be134da803b35c00d..eea0e306a83834e75f44c1b932e5a7747195f85c 100644 (file)
@@ -28,7 +28,7 @@ people using 80-column terminals.
        This is a shorthand for "--pretty=oneline --abbrev-commit"
        used together.
 
---encoding[=<encoding>]::
+--encoding=<encoding>::
        The commit objects record the 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