author | Eric Wong <normalperson@yhbt.net> | |
Fri, 3 Jul 2009 04:34:54 +0000 (21:34 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 6 Jul 2009 16:36:16 +0000 (09:36 -0700) | ||
commit | f290974390c9be76e9166df6f0ab5ad790b812ac | |
tree | 4e6856e53e2eefd3e1fa1736377db59d48c66cdd | tree | snapshot |
parent | c8400d9ef57dc68925d93d0cb9f1777396b380e2 | commit | diff |
Allow the Unix epoch to be a valid commit date
It is common practice to use the Unix epoch as a fallback date
when a suitable date is not available. This is true of git svn
and possibly other importing tools that import non-git history
into git.
Instead of clobbering established strtoul() error reporting
semantics with our own, preserve the strtoul() error value
of ULONG_MAX for fsck.c to handle.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
It is common practice to use the Unix epoch as a fallback date
when a suitable date is not available. This is true of git svn
and possibly other importing tools that import non-git history
into git.
Instead of clobbering established strtoul() error reporting
semantics with our own, preserve the strtoul() error value
of ULONG_MAX for fsck.c to handle.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c | diff | blob | history | |
fsck.c | diff | blob | history |