1From 90c46235ad69a411d83a5e978492421e8e378934 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 18 Feb 2022 23:35:58 -0800
4Subject: [PATCH] git-changebar: Adjust structs for libgit2 1.4.x
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 git-changebar/src/gcb-plugin.c | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12diff --git a/git-changebar/src/gcb-plugin.c b/git-changebar/src/gcb-plugin.c
13index f8ce20c..4488b22 100644
14--- a/git-changebar/src/gcb-plugin.c
15+++ b/git-changebar/src/gcb-plugin.c
16@@ -216,7 +216,7 @@ static int
17 gcb_git_buf_grow (git_buf  *buf,
18                   size_t    target_size)
19 {
20-  if (buf->asize == 0) {
21+  if (buf->reserved == 0) {
22     if (target_size == 0) {
23       target_size = buf->size;
24     }
25@@ -234,7 +234,7 @@ buf_zero (git_buf *buf)
26   if (buf) {
27     buf->ptr = NULL;
28     buf->size = 0;
29-    buf->asize = 0;
30+    buf->reserved = 0;
31   }
32 }
33
34--
352.35.1
36
37