From: Junio C Hamano Date: Mon, 26 Sep 2005 22:37:48 GMT Subject: Re: Cogito: cg-clone doesn't like packed tag objects Message-ID: <7v3bnra20z.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <7virwna2oi.fsf@assigned-by-dhcp.cox.net> Junio C Hamano writes: > Petr Baudis writes: > >> Opinions? > > I do not understand this part of your logic: > >> .... But fetching the tags will cause all the commits >> connected to the tags getting slurped too, and we didn't want that. > > What is the objective here? If you fetch a tag without the > object being tagged (or commit without its tree), you will end > up with smaller object database but you would get yelled at by > git-fsck-objects. Having said that, I am sympathetic to what you are trying to do here; if what I understand what you are trying to do matches what you are actually trying to do, that is. I think there should be a way to say "I do not care if this repository does not have all the history back to root -- as long as I can operate on reasonably recent commits, do not complain about missing objects" to fsck-objects and various fetch engines. We can cauterize commit history chain using the grafts file so that 'git log', 'git whatchanged', and 'gitk' would stop somewhere. Commit walkers can help you, albeit somewhat differently, if you do not give -a flag to them.