rust-lang / rust-lang/git2-rs

Support for filter for Repository fetch options.

Open
#1,076 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2.1k
Forks
450
Avg merge
11m
Merged PRs (30d)
1

Description

I need some way of passing filters to the host server like using this parameter in git clone but couldn't find anywhere in the docs it mentioned being able to do this. I did find the fetch options custom header method but the documentation was to vague for me to guess how it was supposed to work (is this what I should be using?).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with git2::FetchOptions and its custom_headers documentation, then compare it with Git's clone --filter option and the linked host-server behavior. Determine whether fetch filtering is already exposed or needs an API change; done means the supported approach is clear and usable, with corresponding documentation or coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, rust
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.