libgit2 / libgit2/libgit2sharp

Diff folders inside the same commit

Open
#2,055 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.5k
Forks
925
PR merge metrics
No merged PRs in 30d

Description

I'd like to do something like this with libgit2sharp:

git diff --no-index folderA/src folderB/src  > diffBetweenAandB.diff

which gets the diff between folderA and folderB regardless of its branch or tag. Just diff what is on disk.

Currently it is only possible to show changes between the working directory and the index.

v libgit2sharp.0.27.0-preview-0175

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 examining libgit2sharp's existing API for comparing the working directory with the index and how it represents diff results. Define the entry point for comparing two on-disk folders independently of branches or tags, then verify that it produces the requested diff for folderA/src and folderB/src.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, git
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.