aboutsummaryrefslogtreecommitdiff
path: root/fsck-cache.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-17 12:07:00 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-17 12:07:00 -0700
commit01796b0e9180f92ed23aa8dc2261857b9dec7d13 (patch)
treea993c92293f2ea7afbac1e637167830d7f003d7d /fsck-cache.c
parent89d21f4b649d5d31b18da3220608cb349f29e650 (diff)
downloadgit-01796b0e9180f92ed23aa8dc2261857b9dec7d13.tar.gz
git-01796b0e9180f92ed23aa8dc2261857b9dec7d13.tar.xz
Make "revision.h" slightly better to use.
- mark_reachable() can be more generic, marking the reachable revisions with an arbitrary mask. - date parsing will parse to a date of 0 rather than ULONG_MAX for the bad old case, sorting the dates correctly.
Diffstat (limited to 'fsck-cache.c')
-rw-r--r--fsck-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck-cache.c b/fsck-cache.c
index 3fbcd2c7e..a8050f84a 100644
--- a/fsck-cache.c
+++ b/fsck-cache.c
@@ -186,7 +186,7 @@ int main(int argc, char **argv)
continue;
}
if (!get_sha1_hex(argv[i], head_sha1)) {
- mark_reachable(lookup_rev(head_sha1));
+ mark_reachable(lookup_rev(head_sha1), REACHABLE);
heads++;
continue;
}