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

RE: [PATCH] docs: document caveats of rev-list's object-name output

From
Baumann, Moritz <moritz.baumann@sap.com>
Date
Mar 30, 2023, 10:32 UTC
Message-ID
<AS1PR02MB81854CDA4768A8DB3C51FCCA948E9@AS1PR02MB8185.eurprd02.prod.outlook.com>
In-Reply-To
<20230328182650.GC18558@coredump.intra.peff.net>
Show 7 quoted lines
> > > Those names are really just intended as hints for pack-objects. I
> > > suspect the documentation could be more clear about these limitations.
> >
> > That would indeed be great and would have likely prevented the obvious
> > misconceptions on my side.
>
> Here's what I came up with.
Thanks, this is one half of what I would have needed to read.
Show 5 quoted lines
> I also considered adding a specific "if you want the names of each file
> in a range of commits, pipe to diff-tree" example. But it seemed like it
> would clutter up this section. It might be OK as a stand-alone in the
> EXAMPLES section, but should probably be done as a separate patch if
> anyone is interested.

That would be the other half. Since e.g. GitHub's own "best practice" examples do not use this pattern [0], I would assume that I'm not the only one who didn't know about it.

[0] https://github.com/github/platform-samples/blob/master/pre-receive-hooks/block_file_extensions.sh
Previous: Jeff KingNext: Jeff King
Message 8 of 9 in “Feature Request: Option to make "git rev-list --objects" output duplicate objects”
  1. Baumann, MoritzMar 24, 2023
  2. Junio C HamanoMar 24, 2023
  3. Baumann, MoritzMar 27, 2023
  4. Junio C HamanoMar 27, 2023
  5. Jeff KingMar 24, 2023
  6. Baumann, MoritzMar 28, 2023
  7. docs: document caveats of rev-list's object-name outputJeff King, Mar 28, 2023
  8. Baumann, MoritzMar 30, 2023
  9. Jeff KingMar 28, 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.