<p>libgit2 changed its API and added a new argument to git_diff_buffers().</p>

<p>The new argument is a callback for binary files. This should not be relevant here because Geany probably won't be able to handle binary files in the near future.</p>

<p>I tested compilation with this patch against libgit2 0.22 <em>and</em> 0.23.</p>

<p>However, I could not test the plugin against 0.23 because of weird unresolved symbols in libgit2. I assume this is a temporary problem with my distro (ArchLinux).</p>

<p><a href="https://github.com/b4n" class="user-mention">@b4n</a> not sure if you like the style, I broke the function arguments into one per line to make them more readable. Feel free to drop this PR and do it in another way.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany-plugins/pull/283'>https://github.com/geany/geany-plugins/pull/283</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>git-changebar: Fix compilation against libgit2 >= 0.23</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/283/files#diff-0">git-changebar/src/gcb-plugin.c</a>
    (17)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/283.patch'>https://github.com/geany/geany-plugins/pull/283.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/283.diff'>https://github.com/geany/geany-plugins/pull/283.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany-plugins/pull/283">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_fvIluAJQLhXyVATl71gy3C6gZyks5ov095gaJpZM4F522e.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-plugins/pull/283"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>