projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Add "--depth=N" parameter to git-pack-objects to limit maximum delta depth
[git]
/
test-date.c
1
#include <stdio.h>
2
#include <time.h>
3
4
#include "cache.h"
5
6
int main(int argc, char **argv)
7
{
8
int i;
9
10
for (i = 1; i < argc; i++) {
11
char result[100];
12
time_t t;
13
14
memcpy(result, "bad", 4);
15
parse_date(argv[i], result, sizeof(result));
16
t = strtoul(result, NULL, 0);
17
printf("%s -> %s -> %s", argv[i], result, ctime(&t));
18
}
19
return 0;
20
}