robinm<p>Hello <a href="https://fosstodon.org/tags/FediHelp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FediHelp</span></a> I am trying to create a script using <a href="https://fosstodon.org/tags/git" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>git</span></a> in <a href="https://fosstodon.org/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p><p>I need to:<br>- blame (including blaming a file from other commits than the current one)<br>- show basic information about a commit (sha-1, author, date, commit message)<br>- iterate on the hunks of the diff introduced by a given commit (hunk with the +/- sign and context)</p><p>Should I:</p><p>- Shell out and parse the result of git cli output<br>- use <a href="https://fosstodon.org/tags/libgit2" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libgit2</span></a> binding<br>- use <a href="https://fosstodon.org/tags/gitoxide" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gitoxide</span></a> if possible, libgit2 when the API I need does not exist yet</p>