libgit2 / libgit2/pygit2

Please add flags argument to `Index.add_all` function.

Open
#1,208 1 comment 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

Hello,

Sometimes I have to add directories matched with .gitignore to repository. libgit2 function git_index_add_all have force flag for this. But pygit2 does not have argument for flags. Is it possible to add such argument in future releases?

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 the Python Index.add_all function and the underlying libgit2 git_index_add_all function named in the issue. Trace how arguments are passed to the binding, expose the flags argument including the force behavior, and verify that directories matched by .gitignore can be added.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.