git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: FUSE fs for git.

From
OBOri Bernstein <ori@eigenstate.org>
Date
Feb 25, 2021, 04:40 UTC
Message-ID
<20210224204007.4937ee80121aa1ed553a2d91@eigenstate.org>
In-Reply-To
<CANXojcx0TOP9SSr1NgXCddQ3PWze-wBLZA5SRO3YhczqO68u0Q@mail.gmail.com>

On Sun, 21 Feb 2021 11:12:19 +0100, Stef Bon <stefbon@gmail.com> wrote: <snip>

Show 5 quoted lines
> Now I'm looking it's possible and usefull to add a git fuse fs. The
> thing I ask is:
> 
> - is there an api I can use (lowlevel and/or highlevel or whatever is
> available)?

Not provided as part of git, as far as I'm aware, but there are other options.

You can probably look at what cgit does to abuse git internals as an API:

	https://git.zx2c4.com/cgit/tree/cgit.h

It may also make sense to lift code from game of trees:

	http://gameoftrees.org/
There's also libgit2:
	https://libgit2.org/
> - is it usefull, in other words is there a serious benefit of a git
> filesystem: does it add something?

That seems like a question you'd have to ask yourself. What would you do with it?

For me: I've got a 9p based git file system as part of my implementation of git[1]. It's convenient for scripts on top of git, avoiding scratch files or pipeline wrangling. But on Unix, git already has much of that implemented.

I also tend to open files from old commits or other branches to peek at how some code evolved.

[1] http://shithub.us/ori/git9/HEAD/info.html
-- 
    Ori Bernstein
Previous: Stef BonNext: Stef Bon
Message 2 of 5 in “FUSE fs for git.”
  1. Stef BonFeb 21, 2021
  2. Ori BernsteinFeb 25, 2021
  3. Stef BonMar 1, 2021
  4. Ævar Arnfjörð BjarmasonMar 1, 2021
  5. Eric WongFeb 25, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.