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

Re: [PATCH] doc/cat-file: clarify description regarding various command forms

From
Jeff King <peff@peff.net>
Date
Oct 5, 2023, 21:01 UTC
Message-ID
<20231005210125.GA981206@coredump.intra.peff.net>
In-Reply-To
<20231005194852+0200.262756-stepnem@smrk.net>
On Thu, Oct 05, 2023 at 07:48:52PM +0200, Štěpán Němec wrote:
Show 12 quoted lines
> > Yeah, I think that is a big improvement over the status quo. I might
> > also be worth starting with a single-sentence overview of what is common
> > to both modes. Something like:
> >
> >   Output the contents or details of one or more objects. [...]
> 
> I thought about that when proposing the rewrite, but feel that it would
> again just duplicate what's said elsewhere, in this case even before,
> not after, in the very first line of the man page:
> 
>     git-cat-file - Provide content or type and size information for
>     repository objects

Ah, true, I was thinking that the DESCRIPTION section would be the first thing users would read, but I didn't notice the headline. I agree that what it says is probably sufficient (though arguably "type and size" is slightly inaccurate there; I said "details" in my proposed text but maybe that is too vague).

Show 11 quoted lines
> >   This command can operate in two modes, depending on whether an
> >   option from the --batch family is specified.
> >
> >   In non-batch mode, the command provides information on a single object
> >   given on the command line.
>     ^^^^^
> Any particular reason you prefer "given" to "named"?  However absurd a
> notion of giving an actual object on the command line might seem, to me
> "named" is better in that it leaves no room for such misinterpretation.
> And the <object> description in OPTIONS talks about "ways to spell
> object names", building on the same concept.

Nope, I didn't even do that replacement consciously (I was just fleshing out my example, and ended up deciding nothing else needed to be changed). So "named" is fine by me.

Thanks.
-Peff
Previous: Štěpán NěmecNext: Štěpán Němec
Message 6 of 11 in “doc/cat-file: clarify description regarding various command forms”
  1. doc/cat-file: clarify description regarding various command formsŠtěpán Němec, Oct 3, 2023
  2. Jeff KingOct 3, 2023
  3. Štěpán NěmecOct 5, 2023
  4. Jeff KingOct 5, 2023
  5. Štěpán NěmecOct 5, 2023
  6. Jeff KingOct 5, 2023
  7. Štěpán NěmecOct 9, 2023
  8. Jeff KingOct 9, 2023
  9. doc/cat-file: make synopsis and description less confusingŠtěpán Němec, Oct 9, 2023
  10. Jeff KingOct 9, 2023
  11. Junio C HamanoOct 9, 2023

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.