What is Nostr?
DanConwayDev
npub15qy…yejr
2024-09-10 11:13:17
in reply to nevent1q…kq2v

DanConwayDev on Nostr: I think its likely that that a repo could be shallow cloned in the browser to expose ...

I think its likely that that a repo could be shallow cloned in the browser to expose all sorts of repo data.
fiatjaf (npub180c…h6w6) demonstrated that it can be done in a bandwidth efficient way with git.
You could have a button to clone and display files, maybe?

What library would you use in the browser to do a clone?

I did

git clone --no-checkout --depth 1 --filter=blob:none https://github.com/bitcoin/bitcoin

and got 216K, ahahah.

now its just a case of validating that these options made it into gitlib2, and through the rust wrapper (git2) and into the wasm compiled version that can run the the browser (wasm-git).
I'd like to implement a repo explorer and allow links references to commits, files, tags, etc to usefully display the full contents within gitworkshop.dev.
Author Public Key
npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr