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

Re: [PATCH] Include rev-list options in git-log manpage.

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 18, 2008, 19:50 UTC
Message-ID
<7vabn2ewv7.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080118171827.GV29972@genesis.frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> writes:
Show 5 quoted lines
> +ifndef::git-log[]
>  Using these options, linkgit:git-rev-list[1] will act similar to the
>  more specialized family of commit log tools: linkgit:git-log[1],
>  linkgit:git-show[1], and linkgit:git-whatchanged[1]
> +endif::git-log[]
Show 9 quoted lines
> +ifndef::git-log[]
>  --bisect::
>  
>  Limit output to the one commit object which is roughly halfway between
> @@ -388,6 +302,7 @@ may not compile for example).
>  This option can be used along with `--bisect-vars`, in this case,
>  after all the sorted commit objects, there will be the same text as if
>  `--bisect-vars` had been used alone.
> +endif::git-log[]

I do not like these. What you are really trying to express is "this section makes sense only in rev-list documentation", not "the current set of documentation this section does not make sese is git-log". We might end up including this in some other documents.

IOW, they should rather be "ifdef::git-rev-list[]" instead.
Previous: Miklos VajnaNext: Junio C Hamano
Message 6 of 10 in “Include rev-list options in git-log manpage.”
  1. Include rev-list options in git-log manpage.Miklos Vajna, Jan 17, 2008
  2. Junio C HamanoJan 18, 2008
  3. Include rev-list options in git-log manpage.Miklos Vajna, Jan 18, 2008
  4. Johannes SixtJan 18, 2008
  5. Include rev-list options in git-log manpage.Miklos Vajna, Jan 18, 2008
  6. Junio C HamanoJan 18, 2008
  7. Junio C HamanoJan 18, 2008
  8. Include rev-list options in git-log manpage.Miklos Vajna, Jan 18, 2008
  9. Include rev-list options in git-log manpage.Miklos Vajna, Jan 18, 2008
  10. Junio C HamanoJan 18, 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.