summaryrefslogtreecommitdiff
path: root/fsck-cache.c
AgeCommit message (Collapse)Author
2005-04-11Oops. Fix bad initialization of the "seen" array, causing us to notLinus Torvalds
properly clear the reference count at init time. It happened to work for me by pure luck. Until it broke, and my unreferenced commit suddenly looked referenced again. Fixed.
2005-04-11Oops, the actual 'printf' for missing objects was missing.Linus Torvalds
Which made fsck very quiet about objects it hadn't found. So add it. We'll need to make things like these optional, because it's perfectly ok to have partial history if you don't want it, and don't want to go backwards. But for development, it's best to always complain about missing sha1 object files that are referenced from somewhere else.
2005-04-11Add connectivity tracking to fsck.Linus Torvalds
This shows that I've lost track of one commit already. Most likely because I forgot to update the .dircache/HEAD file when doing a commit, so that the next commit referenced not the top-of-tree, but the one older commit. Having dangling commits is fine (in fact, you should always have at least _one_ dangling commit in the top-of-tree). But it's good to know about them.
2005-04-09Make fsck-cache warn about old-style tree objects that have fullLinus Torvalds
pathnames in them. We're migrating away from that. This will cause tons of warnings for the current "sparse" archive, but hell, better now than later.
2005-04-09Teach "fsck" and "read-tree" about recursive tree-nodes.Linus Torvalds
This is totally untested, since we can't actually _write_ things that way yet, but I'll get to that next, I hope. That should fix the huge wasted space for kernel-sized tree objects.
2005-04-09Make "fsck-cache" print out all the root commits it finds.Linus Torvalds
Once I do the reference tracking, I'll also make it print out all the HEAD commits it finds, which is even more interesting.
2005-04-09Fix missing return values and some error tests for empty index filesLinus Torvalds
Patches from Dave Jones and Ingo Molnar, but since I don't have any infrastructure in place to use the old patch applicator scripts I am trying to build up, I ended up fixing the thing by hand instead. Credit where credit is due, though. Nice to see that people are taking a look at the project even in this early stage.
2005-04-09Make fsck-cache start parsing the object types, and checking theirLinus Torvalds
internal format. This doesn't yet check the reachability information, but we're getting there.. Slowly.
2005-04-08Add first cut at "fsck-cache" that validates the SHA1 object store.Linus Torvalds
It doesn't complain about mine. But it also doesn't yet check for inter-object reachability etc.