It appears that `git_buf` has undergone a major rewrite in https://github.com/libgit2/libgit2/pull/6078
The following fixes this for my build, but I admit that I have no clue what I am doing here and this could not be the way to fix this:
``` diff --git i/git-changebar/src/gcb-plugin.c w/git-changebar/src/gcb-plugin.c index f8ce20cd..4488b22f 100644 --- i/git-changebar/src/gcb-plugin.c +++ w/git-changebar/src/gcb-plugin.c @@ -216,7 +216,7 @@ static int gcb_git_buf_grow (git_buf *buf, size_t target_size) { - if (buf->asize == 0) { + if (buf->reserved == 0) { if (target_size == 0) { target_size = buf->size; } @@ -234,7 +234,7 @@ buf_zero (git_buf *buf) if (buf) { buf->ptr = NULL; buf->size = 0; - buf->asize = 0; + buf->reserved = 0; } }
```