Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: [PATCH] pack-objects: re-validate data we copy from elsewhere.

From: Shawn Pearce <hidden>
Date: 2016-06-15 22:42:39

Possibly related (same subject, not in this thread)

Junio C Hamano [off-list ref] wrote:
Shawn Pearce [off-list ref] writes:
quoted
I think the better thing to do here is to not repack objects which
are already contained in very large packs.  Just leave them be.
I've been thinking about updating rev-list so that repack
can be used to organize packs into zero or more "archive packs"
and one "active pack".

repack without -a essentially boils down to:

	rev-list --objects --all --unpacked |
        pack-objects $new_pack

which picks up all live loose objects and create a new pack.

If rev-list had an extention that lets you say

	rev-list --objects --all --unpacked=$active_pack |
	pack-objects $new_pack
Hmm.  Seems very reasonable actually.  :-)

How do we pick the "active pack" in git-repack.sh?

How about "--include-pack=$active_pack" instead of
"--unpacked=$active_pack"?  The latter just reads really funny to me.

-- 
Shawn.

-- 
VGER BF report: S 0.9993
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help