| 611 | } |
| 612 | |
| 613 | static int parse_force_date(const char *in, struct strbuf *out) |
| 614 | { |
| 615 | strbuf_addch(out, '@'); |
| 616 | |
| 617 | if (parse_date(in, out) < 0) { |
| 618 | int errors = 0; |
| 619 | unsigned long t = approxidate_careful(in, &errors); |
| 620 | if (errors) |
| 621 | return -1; |
| 622 | strbuf_addf(out, "%lu", t); |
| 623 | } |
| 624 | |
| 625 | return 0; |
| 626 | } |
| 627 | |
| 628 | static void set_ident_var(char **buf, char *val) |
| 629 | { |
no test coverage detected