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.
This commit is contained in:
Linus Torvalds
2005-04-17 12:07:00 -07:00
parent 89d21f4b64
commit 01796b0e91
2 changed files with 11 additions and 7 deletions

View File

@ -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;
}