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

Re: [PATCH] git show documentation: no longer refer to git-diff-tree options

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 27, 2008, 17:33 UTC
Message-ID
<7v3ap7gq3d.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080427114504.GT4012@genesis.frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> writes:
> I just checked each option one by one and right, I haven't found any
> other option that could be useful for git-show either. Given that the
> wording of -s for git-show is quite different, I think it would be
> easier to just document -s in git-show as well. Like this?
Hmm, yes but not exactly.

You lost --stat, --name-only and friends that were implied by mentioning "diff-tree".

I agree your _motivation_ behind your original patch is good. Saying "see also that page if you want to do very exotic and rarely useful operation" is one thing, but saying "described are most often used ones" and not describing enough is bad.

Perhaps we would want to include diff-options.txt. There may be some options that are no-op or always-on in the context of "git show" in the file, but we already have an infrastracture to turn parts of the inclusion on and off depending on which manual page includes it.

Show 29 quoted lines
> diff --git a/Documentation/git-show.txt b/Documentation/git-show.txt
> index dccf0e2..299b611 100644
> --- a/Documentation/git-show.txt
> +++ b/Documentation/git-show.txt
> @@ -25,12 +25,6 @@ with \--name-only).
>  
>  For plain blobs, it shows the plain contents.
>  
> -The command takes options applicable to the linkgit:git-diff-tree[1] command to
> -control how the changes the commit introduces are shown.
> -
> -This manual page describes only the most frequently used options.
> -
> -
>  OPTIONS
>  -------
>  <object>::
> @@ -38,6 +32,9 @@ OPTIONS
>  	For a more complete list of ways to spell object names, see
>  	"SPECIFYING REVISIONS" section in linkgit:git-rev-parse[1].
>  
> +-s::
> +	Don't show a textural diff for commits.
> +
>  include::pretty-options.txt[]
>  
>  
> -- 
> 1.5.5.1.91.g499fc.dirty
Previous: Miklos VajnaNext: Miklos Vajna
Message 7 of 11 in “Documentation: move options of git-diff-tree to a separate file.”
  1. 1/2 Documentation: move options of git-diff-tree to a separate file.Miklos Vajna, Apr 26, 2008
  2. 2/2 Documentation: include diff-tree-options in git-show manpage.Miklos Vajna, Apr 26, 2008
  3. Junio C HamanoApr 27, 2008
  4. Documentation: move options of git-diff-tree to a separate file.Miklos Vajna, Apr 27, 2008
  5. しらいしななこApr 27, 2008
  6. git show documentation: no longer refer to git-diff-tree optionsMiklos Vajna, Apr 27, 2008
  7. Junio C HamanoApr 27, 2008
  8. git show documentation: no longer refer to git-diff-tree optionsMiklos Vajna, May 11, 2008
  9. Junio C HamanoMay 12, 2008
  10. Miklos VajnaMay 13, 2008
  11. Miklos VajnaMay 13, 2008

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.