projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfac5d9
)
Make a hack to convert-cache for missing author dates in old
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sat, 23 Apr 2005 23:48:32 +0000
(16:48 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sat, 23 Apr 2005 23:48:32 +0000
(16:48 -0700)
archives (notably the old sparse one).
Very hacky. But hopefully we can do the conversion once, and never
worry about this ever again.
convert-cache.c
patch
|
blob
|
history
diff --git
a/convert-cache.c
b/convert-cache.c
index 35191dffa7cba3de5297111c1ffa4253df6124a7..312fb61c8113431a2ed8f5b7d9037bb5e82b39a0 100644
(file)
--- a/
convert-cache.c
+++ b/
convert-cache.c
@@
-233,6
+233,13
@@
static int convert_date_line(char *dst, void **buf, unsigned long *sp)
return len + datelen;
}
+ /*
+ * Hacky hacky: one of the sparse old-style commits does not have
+ * any date at all, but we can fake it by using the committer date.
+ */
+ if (*date == '\n' && strchr(next, '>'))
+ date = strchr(next, '>')+2;
+
return len + sprintf(dst, "%lu -0700\n", parse_oldstyle_date(date));
}