Re: FUSE fs for git.
- From
- Eric Wong <e@80x24.org>
- Date
- Feb 25, 2021, 05:32 UTC
- Message-ID
- <20210225053240.GA10230@dcvr>
- In-Reply-To
- <CANXojcx0TOP9SSr1NgXCddQ3PWze-wBLZA5SRO3YhczqO68u0Q@mail.gmail.com>
Stef Bon <stefbon@gmail.com> wrote:
> - is there an api I can use (lowlevel and/or highlevel or whatever is > available)?
I've used "git cat-file --batch" in many places via pipes. Git.pm provides a convenient interface for it. It handles requests like "$REFNAME:$PATHNAME" so it'd be pretty easy to map FS-like paths to it.
"git fast-import" is also nice if you need write access and nowadays has "cat-blob" functionality similar to the aforementioned --batch.