git: update to v2.2.1 Update to git version v2.2.1, including API changes. Signed-off-by: Christian Hesse <mail@eworm.de>
Christian Hesse mail@eworm.de
Fri, 19 Dec 2014 00:28:34 -0700
4 files changed,
8 insertions(+),
7 deletions(-)
M
ui-log.c
→
ui-log.c
@@ -56,11 +56,11 @@ }
void show_commit_decorations(struct commit *commit) { - struct name_decoration *deco; + const struct name_decoration *deco; static char buf[1024]; buf[sizeof(buf) - 1] = 0; - deco = lookup_decoration(&name_decoration, &commit->object); + deco = get_name_decoration(&commit->object); html("<span class='decoration'>"); while (deco) { if (starts_with(deco->name, "refs/heads/")) {
M
ui-repolist.c
→
ui-repolist.c
@@ -17,16 +17,17 @@ {
time_t result; size_t size; char *buf; - static char buf2[64]; + struct strbuf date_buf = STRBUF_INIT; if (readfile(path, &buf, &size)) return -1; - if (parse_date(buf, buf2, sizeof(buf2)) > 0) - result = strtoul(buf2, NULL, 10); + if (parse_date(buf, &date_buf) == 0) + result = strtoul(date_buf.buf, NULL, 10); else result = 0; free(buf); + strbuf_release(&date_buf); return result; }