I added multiple failing tests cases to tests/libgit2/blame/buffer.c to cover the test cases.
blame.c has been updated to get these tests to pass.
Fixes include:
shift_hunks_by now no longer shifts hunks before the start line.
Adjusting the wedge line in the case where a new hunk deletes and adds lines.
In buffer_line_cb for addions humks are now shifted after the current diff line.
Fixing the logic for removing a line in buffer_line_cb to work with multi-line deletions.
| Name |
Last commit
|
Last update |
|---|---|---|
| .devcontainer | Loading commit data... | |
| .github | Loading commit data... | |
| .vscode | Loading commit data... | |
| ci | Loading commit data... | |
| cmake | Loading commit data... | |
| deps | Loading commit data... | |
| docs | Loading commit data... | |
| examples | Loading commit data... | |
| fuzzers | Loading commit data... | |
| include | Loading commit data... | |
| script | Loading commit data... | |
| src | Loading commit data... | |
| tests | Loading commit data... | |
| .HEADER | Loading commit data... | |
| .clang-format | Loading commit data... | |
| .editorconfig | Loading commit data... | |
| .gitattributes | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .mailmap | Loading commit data... | |
| AUTHORS | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| COPYING | Loading commit data... | |
| README.md | Loading commit data... | |
| SECURITY.md | Loading commit data... | |
| api.docurium | Loading commit data... | |
| git.git-authors | Loading commit data... | |
| package.json | Loading commit data... |