gitoxide icon indicating copy to clipboard operation
gitoxide copied to clipboard

built-in support for the `file` protocol

Open Byron opened this issue 2 years ago • 6 comments

Currently gitoxide relies on shelling this out to the git upload-pack binary which isn't necessarily available on all systems. Instead, we must implement the server side of the fetch operation ourselves and use it.

Key Features

  • [ ] Shallow support
    • Cargo supports shallow clones, and ideally these also work locally just like when using git
  • [ ] Protocol V2
    • Probably V1 can be skipped

Byron avatar Feb 13 '23 16:02 Byron

Looking forward to this, it would be great if gix can support --local to use hardlinks to avoid copying .git or --shared to avoid copying any objects at all when dealing with local repositories.

NobodyXu avatar Aug 12 '23 10:08 NobodyXu

I agree, and it's so low-hanging that I might even do that just to warm up with the topic.

Byron avatar Aug 12 '23 16:08 Byron