# \#libgit2

**URL:** https://discourse.julialang.org/tag/libgit2/1144.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Preserve against garbage collection in LibGit2](https://discourse.julialang.org/t/preserve-against-garbage-collection-in-libgit2/117095)

<div class="topic-metadata">

**Author:** [@emmt](https://discourse.julialang.org/u/emmt)\
**Replies:** 4\
**Last updated:** [July 16, 2024, 5:11pm UTC](https://discourse.julialang.org/t/preserve-against-garbage-collection-in-libgit2/117095 "2024-07-16T17:11:25Z")

</div>

Maybe I am wrong but I have a concern about the implementation of LibGit2 regarding garbage collection. To ilustrate this, please have a look at the code of a simple function such as: function Base.length(blob::GitBlob)…

---

## [Package LibGit2 does not have libGit2\_jll](https://discourse.julialang.org/t/package-libgit2-does-not-have-libgit2-jll/106333)

<div class="topic-metadata">

**Author:** [@JohnS](https://discourse.julialang.org/u/JohnS)\
**Replies:** 1\
**Last updated:** [November 16, 2023, 10:57pm UTC](https://discourse.julialang.org/t/package-libgit2-does-not-have-libgit2-jll/106333 "2023-11-16T22:57:29Z")

</div>

I successfully precompiled my package locally but received the following error in my Github Actions CI Julia nightly. Any suggestions on how to fix are most welcome, and please let me know if I need to provide other info…

---

## [LibGit2 question](https://discourse.julialang.org/t/libgit2-question/87871)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [September 27, 2022, 2:15pm UTC](https://discourse.julialang.org/t/libgit2-question/87871 "2022-09-27T14:15:26Z")

</div>

The library LibGit2 is part of Julia, I think. How can I achieve the aquivalent of: git diff --name-only --cached using LibGit2? I tried: repo = LibGit2.GitRepo(".") LibGit2.diff\_files(repo, "main", "origin/…
