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/main")
which does not work (it returns an empty AbstractString).
Any idea?
I just want to get a list of staged files.