summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d556fae)
raw | patch | inline | side by side (parent: d556fae)
author | Shawn Pearce <spearce@spearce.org> | |
Wed, 17 May 2006 22:34:48 +0000 (18:34 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 18 May 2006 00:36:36 +0000 (17:36 -0700) |
The log parser was only ever matching the last log record due to
calling strtoul on "> 1136091609" rather than " 1136091609". Also
once a match for '@' has been found after the name of the ref there
is no point in looking for another '@' within the remaining text.
Signed-off-by: Junio C Hamano <junkio@cox.net>
calling strtoul on "> 1136091609" rather than " 1136091609". Also
once a match for '@' has been found after the name of the ref there
is no point in looking for another '@' within the remaining text.
Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c | patch | blob | history | |
sha1_name.c | patch | blob | history |
index 4c99e3729f046aee48033ec128884bbb880466fc..ae9825deadeda63c7ebc2d775ad59bd66256a6a4 100644 (file)
--- a/refs.c
+++ b/refs.c
c++;
if (c == logend || *c == '\n')
die("Log %s is corrupt.", logfile);
- date = strtoul(c, NULL, 10);
+ date = strtoul(c + 1, NULL, 10);
if (date <= at_time) {
if (get_sha1_hex(rec + 41, sha1))
die("Log %s is corrupt.", logfile);
diff --git a/sha1_name.c b/sha1_name.c
index 3ac3ab4f585b7f6b8b1f26f5fb32e4b647d6deb0..4376cb3928d068b27618b4d41d3903f536582419 100644 (file)
--- a/sha1_name.c
+++ b/sha1_name.c
at_time = approxidate(date_spec);
free(date_spec);
len = at_mark;
+ break;
}
}