Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Update "convert-cache" to handle git itself.
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sun, 24 Apr 2005 22:49:09 +0000
(15:49 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sun, 24 Apr 2005 22:49:09 +0000
(15:49 -0700)
The git archives have some old-date-format commits with timezones
that the converter didn't recognize. Also, make it be quiet about
already-converted dates.
convert-cache.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
c6e007b
)
diff --git
a/convert-cache.c
b/convert-cache.c
index 312fb61c8113431a2ed8f5b7d9037bb5e82b39a0..431b11798816a88c78daa846fdebf41ed57f1378 100644
(file)
--- a/
convert-cache.c
+++ b/
convert-cache.c
@@
-170,7
+170,7
@@
static unsigned long parse_oldstyle_date(const char *buf)
};
/* We only ever did two timezones in the bad old format .. */
const char *timezones[] = {
- "PDT", "PST", NULL
+ "PDT", "PST",
"CEST",
NULL
};
const char **fmt = formats;
@@
-229,7
+229,6
@@
static int convert_date_line(char *dst, void **buf, unsigned long *sp)
if (isdigit(*date)) {
int datelen = next - date;
memcpy(dst, date, datelen);
- printf("new format date '%.*s'?\n", datelen-1, date);
return len + datelen;
}