Staging
v0.5.1
https://github.com/git/git
Revision 943d5b73e2adf3cd0d3f72c9a06c75681a4ea3ca authored by Junio C Hamano on 09 August 2006, 21:05:23 UTC, committed by Junio C Hamano on 09 August 2006, 21:05:23 UTC
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 03b9d56
Raw File
Tip revision: 943d5b73e2adf3cd0d3f72c9a06c75681a4ea3ca authored by Junio C Hamano on 09 August 2006, 21:05:23 UTC
allow diff.renamelimit to be set regardless of -M/-C
Tip revision: 943d5b7
test-date.c
#include <stdio.h>
#include <time.h>

#include "cache.h"

int main(int argc, char **argv)
{
	int i;

	for (i = 1; i < argc; i++) {
		char result[100];
		time_t t;

		memcpy(result, "bad", 4);
		parse_date(argv[i], result, sizeof(result));
		t = strtoul(result, NULL, 0);
		printf("%s -> %s -> %s", argv[i], result, ctime(&t));

		t = approxidate(argv[i]);
		printf("%s -> %s\n", argv[i], ctime(&t));
	}
	return 0;
}
back to top