MCPcopy Index your code
hub / github.com/git/git / parse_force_date

Function parse_force_date

builtin/commit.c:613–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613static 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
628static void set_ident_var(char **buf, char *val)
629{

Callers 1

determine_author_infoFunction · 0.85

Calls 4

strbuf_addchFunction · 0.85
parse_dateFunction · 0.85
approxidate_carefulFunction · 0.85
strbuf_addfFunction · 0.85

Tested by

no test coverage detected