git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation/log: clarify what --raw means

From
Junio C Hamano <gitster@pobox.com>
Date
May 15, 2015, 17:38 UTC
Message-ID
<xmqqtwvdhhb2.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1431704674-18595-1-git-send-email-Matthieu.Moy@imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Show 7 quoted lines
> There are several "raw formats", and describing --raw as "Generate the
> raw format" in the documentation for git-log seems to imply that it
> generates the raw *log* format.
>
> Clarify the wording by saying "raw diff format" explicitely, and make a
> special-case for "git log": "git log --raw" does not just change the
> format, it shows something which is not shown by default.

Being a pedant, I find "generate the raw diff format" somewhat a strange wording. Aren't we generating a diff in the raw format (as opposed to in other format like the textual patch format), generating a diff using the raw format, etc.?

In any case, this is an improvement.  Thanks.  Will queue.
Show 28 quoted lines
> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
> ---
>  Documentation/diff-options.txt | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
> index ccd4998..163163b 100644
> --- a/Documentation/diff-options.txt
> +++ b/Documentation/diff-options.txt
> @@ -41,8 +41,17 @@ endif::git-format-patch[]
>  
>  ifndef::git-format-patch[]
>  --raw::
> -	Generate the raw format.
> +ifndef::git-log[]
> +	Generate the raw diff format.
>  	{git-diff-core? This is the default.}
> +endif::git-log[]
> +ifdef::git-log[]
> +	For each commit, show a summary of changes using the raw diff
> +	format. See the "RAW OUTPUT FORMAT" section of
> +	linkgit:git-diff[1]. This is different from showing the log
> +	itself in raw format, which you can achieve with
> +	`--format=raw`.
> +endif::git-log[]
>  endif::git-format-patch[]
>  
>  ifndef::git-format-patch[]
Previous: Eric SunshineNext: Matthieu Moy
Message 10 of 16 in “git log --raw abbreviates SHA1s, despite what manual says”
  1. Ed AvisMay 15, 2015
  2. Matthieu MoyMay 15, 2015
  3. Ed AvisMay 15, 2015
  4. Ed AvisMay 15, 2015
  5. Matthieu MoyMay 15, 2015
  6. Documentation/log: clarify what --raw meansMatthieu Moy, May 15, 2015
  7. Ed AvisMay 15, 2015
  8. Junio C HamanoMay 15, 2015
  9. Eric SunshineMay 15, 2015
  10. Junio C HamanoMay 15, 2015
  11. Matthieu MoyMay 18, 2015
  12. 1/2 Documentation/log: clarify what --raw meansMatthieu Moy, May 18, 2015
  13. 2/2 Documentation/log: clarify sha1 non-abbreviation in log --rawMatthieu Moy, May 18, 2015
  14. Junio C HamanoMay 18, 2015
  15. Matthieu MoyMay 18, 2015
  16. Junio C HamanoMay 18, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.