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

Re: [PATCH] Add git-index-pack -l to list objects in a pack

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 6, 2007, 21:35 UTC
Message-ID
<7vtztkyde6.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<466725C4.5090707@catalyst.net.nz>
Sam Vilain <sam.vilain@catalyst.net.nz> writes:
Show 10 quoted lines
> Nicolas Pitre wrote:
>>> I couldn't figure out how to make git-unpack-objects -n work.
>>> But it seems to be easy in the loop in index-pack
>> 
>> Why don't you simply use git-show-index?
>
> Because I found the enticing -n switch in the documentation first?
>
> That command certainly would have done the trick for what I needed it
> to do.  Perhaps change the documentation of the switch?
I think this is "incorrect expectation".  The document says:
>  -n::
> -        Only list the objects that would be unpacked, don't actually unpack
> -        them.

I suspect that you were trying to unpack in a repository that already had that object? They are not "the objects that would be unpacked" hence not listed.

Previous: Sam Vilain
Message 4 of 4 in “Add git-index-pack -l to list objects in a pack”
  1. Add git-index-pack -l to list objects in a packSam Vilain, Jun 6, 2007
  2. Nicolas PitreJun 6, 2007
  3. Sam VilainJun 6, 2007
  4. Junio C HamanoJun 6, 2007

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.