| 122 | } |
| 123 | |
| 124 | static void get_time(struct timeval *now) |
| 125 | { |
| 126 | const char *x; |
| 127 | |
| 128 | x = getenv("GIT_TEST_DATE_NOW"); |
| 129 | if (x) { |
| 130 | now->tv_sec = atoi(x); |
| 131 | now->tv_usec = 0; |
| 132 | } |
| 133 | else |
| 134 | gettimeofday(now, NULL); |
| 135 | } |
| 136 | |
| 137 | void show_date_relative(timestamp_t time, struct strbuf *timebuf) |
| 138 | { |
no test coverage detected