Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:14

Sam Vilain [off-list ref] writes:
Nicolas Pitre wrote:
quoted
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help