Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

built-in support for the file protocol #734

Open
2 tasks
Tracked by #106
Byron opened this issue Feb 13, 2023 · 2 comments
Open
2 tasks
Tracked by #106

built-in support for the file protocol #734

Byron opened this issue Feb 13, 2023 · 2 comments

Comments

@Byron
Copy link
Member

Byron commented Feb 13, 2023

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 Byron mentioned this issue Feb 13, 2023
47 tasks
@Byron Byron changed the title built-in support for the file protocol - i.e. must not rely on the git binary. built-in support for the file protocol Feb 13, 2023
@NobodyXu
Copy link
Contributor

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.

@Byron
Copy link
Member Author

Byron commented Aug 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants