winfsp / hubfs

File system for GitHub & GitLab
https://winfsp.dev
GNU Affero General Public License v3.0
1.62k stars 60 forks source link

refs other than heads(branches),tags,hashes #2

Closed andreineculau closed 2 years ago

andreineculau commented 2 years ago

Nice initiative 👏 I had a look at your source code and just wanted to confirm and highlight that your "ref" seems to only handle refs/heads/*, refs/tags/* and hashes. Except there can be other refs. git notes command and https://github.com/google/git-appraise store content under refs/notes, etc.

billziss-gh commented 2 years ago

HUBFS currently handles:

It may be worthwhile to add support for additional refs. Please keep in mind that currently the primary use case scenario for HUBFS is to allow easy browsing and building of projects without cloning. It is not intended as a replacement for the regular git workflow.

andreineculau commented 2 years ago

Please keep in mind that currently the primary use case scenario for HUBFS is to allow easy browsing

It is exactly this that makes hubfs for my projects/teams. We use other refs to push e.g. build artifacts like logs/etc . So having a filesystem that could simply show the contents instead of a complicated git flow would be magical (which can be hidden behind a script ofc but nothing as smooth as an ephemeral file system)

One doesn't need to look for edge cases - think pullrequest refs that already have merged your PR to the target branch. Easy to get access to instead of git/hub/gh/etc invocations.

billziss-gh commented 2 years ago

I discuss below problems and potential solutions:

billziss-gh commented 2 years ago

HUBFS now has a -fullrefs option that can be used to make all refs available.

Related commits: 1c74be74ceff3eb60c5e5a7de9bab5405a071b53, 599c0a4646e143d8b9585d46ee51c8d93a039aef