rust-lang / rust-lang/git2-rs

Creating an in-memory Git repository

Open
#693 2 comments 13 reactions 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

libgit2 supports creating an in-memory repository that doesn't write to disk at all. This is useful for applications that only need to clone a repo once to do some analysis and then discard them.

See https://stackoverflow.com/a/39864196 for an example.

It seems git2-rs does not support this.. Or haven't I looked hard enough?

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 by comparing git2-rs's repository-creation entry points with libgit2's in-memory repository support and the linked Stack Overflow example. Define the required API and verify it with tests; done means applications can create and use a repository without writing to disk.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, rust
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.