Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
parse_date(): '@' prefix forces git-timestamp
[gitweb.git]
/
date.c
diff --git
a/date.c
b/date.c
index 099ddbe7fc9ea1595be8797fb4bca230fa143a32..bf8e088e6aec6278ec4be054732e517ce3abaafc 100644
(file)
--- a/
date.c
+++ b/
date.c
@@
-637,7
+637,8
@@
int parse_date_basic(const char *date, unsigned long *timestamp, int *offset)
*offset = -1;
tm_gmt = 0;
- if (!match_object_header_date(date, timestamp, offset))
+ if (*date == '@' &&
+ !match_object_header_date(date + 1, timestamp, offset))
return 0; /* success */
for (;;) {
int match = 0;