You can run Git on object storage if you re-make packfiles

(tigrisdata.com)

48 points | by evacchi 2 days ago

9 comments

  • flowingfocus 40 minutes ago
    I recently found https://github.com/enroute-sh/enroute which also does git on object storage

    I found the idea of a git-proxy interesting where you start with proxying an existing forge and then later adopt the object storage backend

  • andrewaylett 1 hour ago
    `git update-server-info` is your friend; it generates the auxiliary files needed to allow clients to make range requests against packs.

    For example: https://andrewaylett.github.io/rgitweb/ is a repository viewer that runs against a static git repo. It doesn't care what you're storing the pack in, just that the data is there to make the right range requests.

  • 0bytes 3 hours ago
    4th submission in 3 days. Is this a marketing spam campaign?
    • bryanrasmussen 55 minutes ago
      It seems like the kind of thing I would naturally post if I came across it, so a bunch of submissions over 3 days makes me think a bunch of people saw it and when they saw it said huh, I will submit to HN.

      I think that makes more sense than some spam campaign for this.

    • gjvc 2 hours ago
      it's a shit website with awful fonts, certainly
  • mgrandl 4 hours ago
    Sweet. It’s kinda wild to me that this hasn’t been done. Would be so much nicer if gitlab/forgejo/gitea/… supported object storage for everything. Currently you always still need a filesystem for git repos.
    • baalimago 1 hour ago
      > It’s kinda wild to me that this hasn’t been done

      https://github.com/awslabs/git-remote-s3

      This works seamlessly so you can run `git remote add origin s3://my-git-bucket/my-repo`

    • throwaway7356 2 hours ago
      It has been done. It is no longer done because it is not efficient.

      Yes, it was not "object storage", but Git can be served from a dumb http server as static files. Now someone figured out that object storage can also serve static files via http. Wow!

    • eru 1 hour ago
      On Linux, Fuse is your friend. See eg https://github.com/matthiasgoergens/git-snap-fs
  • jauntywundrkind 4 hours ago
  • mmastrac 4 hours ago
    Nice. I saw some git-on-durable-objects projects but I'd so much prefer a straight object storage option.
  • jiggawatts 3 hours ago
    Next: replace whole-file hashes with a Merkle Patricia tree hash and enable BitTorrent-like distribution protocols on top, not to mention the deduplication advantages!
  • hanwenn 3 hours ago
    "Finally delta objects should be stored as their own object in the packfile instead of slapped onto the end of the object it’s a delta of so that you don’t have to read the object and its deltas to read the object in the first place."

    Author thinks that delta encoding is there for no reason. Good luck, kid.

  • uptownhr 2 hours ago
    I created my own as well and powers agentgit.co
    • scoopertrooper 2 hours ago
      That Claude written page is impenetrable. You really need to write yourself or use a better model.