pygit2.GIT_DIFF_IGNORE_WHITESPACE result Inconsistent
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 408
- Avg merge
- 2d 57m
- Merged PRs (30d)
- 7
Description
git command:
diff --git a/Makefile b/Makefile
index bb20e89..c25d045 100644
--- a/Makefile
+++ b/Makefile
@@ -3,4 +3,5 @@ install:
clean:
rm -rf tgit-statistics
+
qed
\ No newline at end of file
pygit2:
repo.diff(from_id, to_id, cached=True, flags=pygit2.GIT_DIFF_IGNORE_WHITESPACE, context_lines=3, interhunk_lines=3)
diff --git a/Makefile b/Makefile
index bb2..c25 100644
--- a/Makefile
+++ b/Makefile
@@ -5,0 +6 @@ clean:
+
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the repo.diff call using cached=True and GIT_DIFF_IGNORE_WHITESPACE, then compare its output with the shown git diff for the Makefile change. Trace the corresponding libgit2 diff behavior and determine what consistent result should be produced for whitespace-only additions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100