libgit2 / libgit2/pygit2

repository.diff passing id_abbrev=40

Open
#928 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.7k
Forks
408
Avg merge
2d 57m
Merged PRs (30d)
7

Description

Is there a way to pass in id_abbrev=40 into diff operation? Seems that libgit2 allows that, but there's no way to pass that via pygit2 diff/diff_to_tree functions

Go libgit2 allows that for example.

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 reading the pygit2 diff and diff_to_tree entry points and compare their available options with libgit2's id_abbrev support. The work is done when callers can pass id_abbrev through these operations and the resulting diff honors that value; no test or file path is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.