mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
Update "convert-cache" to handle git itself.
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.
This commit is contained in:
parent
c6e007b094
commit
3f053897b3
@ -170,7 +170,7 @@ static unsigned long parse_oldstyle_date(const char *buf)
|
|||||||
};
|
};
|
||||||
/* We only ever did two timezones in the bad old format .. */
|
/* We only ever did two timezones in the bad old format .. */
|
||||||
const char *timezones[] = {
|
const char *timezones[] = {
|
||||||
"PDT", "PST", NULL
|
"PDT", "PST", "CEST", NULL
|
||||||
};
|
};
|
||||||
const char **fmt = formats;
|
const char **fmt = formats;
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ static int convert_date_line(char *dst, void **buf, unsigned long *sp)
|
|||||||
if (isdigit(*date)) {
|
if (isdigit(*date)) {
|
||||||
int datelen = next - date;
|
int datelen = next - date;
|
||||||
memcpy(dst, date, datelen);
|
memcpy(dst, date, datelen);
|
||||||
printf("new format date '%.*s'?\n", datelen-1, date);
|
|
||||||
return len + datelen;
|
return len + datelen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user